From 5d6eb2b553b866b535f0188927c6aa67cc5ef498 Mon Sep 17 00:00:00 2001 From: fly_mc Date: Sun, 29 Sep 2024 03:24:40 +0800 Subject: [PATCH] change migration --- .../migration/1727542814499-Pgroonga.js | 18 ------------------ .../migration/1727542814599-Pgroonga.js | 5 ----- 2 files changed, 23 deletions(-) delete mode 100644 packages/backend/migration/1727542814499-Pgroonga.js diff --git a/packages/backend/migration/1727542814499-Pgroonga.js b/packages/backend/migration/1727542814499-Pgroonga.js deleted file mode 100644 index 923a835be..000000000 --- a/packages/backend/migration/1727542814499-Pgroonga.js +++ /dev/null @@ -1,18 +0,0 @@ -export class Pgroonga1727542814499 { - name = 'Pgroonga1727542814499' - - async up(queryRunner) { - await queryRunner.query(`CREATE INDEX "IDX_f27f5d88941e57442be75ba9c8" ON "note" USING "pgroonga" ("text")`); - await queryRunner.query(`CREATE INDEX "IDX_7cc8d9b0ee7861b4e5dc86ad85" ON "note" USING "pgroonga" ("cw" pgroonga_varchar_full_text_search_ops_v2)`); - await queryRunner.query(`CREATE INDEX "IDX_065d4d8f3b5adb4a08841eae3c" ON "user" USING "pgroonga" ("name" pgroonga_varchar_full_text_search_ops_v2)`); - await queryRunner.query(`CREATE INDEX "IDX_fcb770976ff8240af5799e3ffc" ON "user_profile" USING "pgroonga" ("description" pgroonga_varchar_full_text_search_ops_v2) `); - - } - - async down(queryRunner) { - await queryRunner.query(`DROP INDEX "public"."IDX_f27f5d88941e57442be75ba9c8"`); - await queryRunner.query(`DROP INDEX "public"."IDX_7cc8d9b0ee7861b4e5dc86ad85"`); - await queryRunner.query(`DROP INDEX "public"."IDX_065d4d8f3b5adb4a08841eae3c"`); - await queryRunner.query(`DROP INDEX "public"."IDX_fcb770976ff8240af5799e3ffc"`); - } -} \ No newline at end of file diff --git a/packages/backend/migration/1727542814599-Pgroonga.js b/packages/backend/migration/1727542814599-Pgroonga.js index 2fde79c8e..1a0dab110 100644 --- a/packages/backend/migration/1727542814599-Pgroonga.js +++ b/packages/backend/migration/1727542814599-Pgroonga.js @@ -1,8 +1,3 @@ -/* - * SPDX-FileCopyrightText: syuilo and misskey-project - * SPDX-License-Identifier: AGPL-3.0-only - */ - export class Pgroonga1727542814599 { name = 'Pgroonga1727542814599'