From f04002188de44baf67a5ff03eb4d2e9fe6115504 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 1 Feb 2020 16:57:12 +0900 Subject: Resolve #5513 --- migration/1580543501339-v12-13.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 migration/1580543501339-v12-13.ts (limited to 'migration') diff --git a/migration/1580543501339-v12-13.ts b/migration/1580543501339-v12-13.ts new file mode 100644 index 0000000000..7f5d8b8030 --- /dev/null +++ b/migration/1580543501339-v12-13.ts @@ -0,0 +1,14 @@ +import {MigrationInterface, QueryRunner} from "typeorm"; + +export class v12131580543501339 implements MigrationInterface { + name = 'v12131580543501339' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`CREATE INDEX "IDX_NOTE_TAGS" ON "note" USING gin ("tags")`, undefined); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`DROP INDEX "IDX_NOTE_TAGS"`, undefined); + } + +} -- cgit v1.2.3-freya