diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-10-21 00:43:39 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-10-21 00:43:39 +0900 |
| commit | 4c6c06c80afd3e2309b305f40c2e67e48863bf31 (patch) | |
| tree | d9d24139b126867a3ff1f4e893175aea05ebd01e /migration | |
| parent | Add ssl to elasticsearch config settings (#5527) (diff) | |
| download | misskey-4c6c06c80afd3e2309b305f40c2e67e48863bf31.tar.gz misskey-4c6c06c80afd3e2309b305f40c2e67e48863bf31.tar.bz2 misskey-4c6c06c80afd3e2309b305f40c2e67e48863bf31.zip | |
Improve emoji-picker (#5515)
* Improve emoji-picker
* remove unimplanted translation
* カテゴリのサジェスト
* use unique
Diffstat (limited to 'migration')
| -rw-r--r-- | migration/1571220798684-CustomEmojiCategory.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/migration/1571220798684-CustomEmojiCategory.ts b/migration/1571220798684-CustomEmojiCategory.ts new file mode 100644 index 0000000000..37f63fa3d0 --- /dev/null +++ b/migration/1571220798684-CustomEmojiCategory.ts @@ -0,0 +1,13 @@ +import {MigrationInterface, QueryRunner} from "typeorm"; + +export class CustomEmojiCategory1571220798684 implements MigrationInterface { + + public async up(queryRunner: QueryRunner): Promise<any> { + await queryRunner.query(`ALTER TABLE "emoji" ADD "category" character varying(128)`, undefined); + } + + public async down(queryRunner: QueryRunner): Promise<any> { + await queryRunner.query(`ALTER TABLE "emoji" DROP COLUMN "category"`, undefined); + } + +} |