enhance: convert svg to png of custom emojis
This commit is contained in:
		
							parent
							
								
									43baafbebb
								
							
						
					
					
						commit
						eec7e6500e
					
				
					 12 changed files with 49 additions and 59 deletions
				
			
		
							
								
								
									
										15
									
								
								packages/backend/migration/1642611822809-emoji-url.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								packages/backend/migration/1642611822809-emoji-url.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| const { MigrationInterface, QueryRunner } = require("typeorm"); | ||||
| 
 | ||||
| module.exports = class emojiUrl1642611822809 { | ||||
| 		name = 'emojiUrl1642611822809' | ||||
| 
 | ||||
| 		async up(queryRunner) { | ||||
| 			await queryRunner.query(`ALTER TABLE "emoji" RENAME COLUMN "url" TO "originalUrl"`); | ||||
| 			await queryRunner.query(`ALTER TABLE "emoji" ADD "publicUrl" character varying(512) NOT NULL DEFAULT ''`); | ||||
| 		} | ||||
| 
 | ||||
| 		async down(queryRunner) { | ||||
| 			await queryRunner.query(`ALTER TABLE "emoji" DROP COLUMN "publicUrl"`); | ||||
| 			await queryRunner.query(`ALTER TABLE "emoji" RENAME COLUMN "originalUrl" TO "url"`); | ||||
| 		} | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue