From 4c6c06c80afd3e2309b305f40c2e67e48863bf31 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Mon, 21 Oct 2019 00:43:39 +0900 Subject: Improve emoji-picker (#5515) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Improve emoji-picker * remove unimplanted translation * カテゴリのサジェスト * use unique --- migration/1571220798684-CustomEmojiCategory.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 migration/1571220798684-CustomEmojiCategory.ts (limited to 'migration') 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 { + await queryRunner.query(`ALTER TABLE "emoji" ADD "category" character varying(128)`, undefined); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "emoji" DROP COLUMN "category"`, undefined); + } + +} -- cgit v1.2.3-freya