1
0
Fork 1
mirror of https://example.com synced 2024-11-26 07:46:38 +09:00
firefish/packages/backend/migration-neko/1698420787202-pgroonga.js

28 lines
862 B
JavaScript
Raw Normal View History

export class Pgroonga1698420787202 {
name = "Pgroonga1698420787202";
async up(queryRunner) {
await queryRunner.query(
`CREATE INDEX "IDX_f27f5d88941e57442be75ba9c8" ON "note" USING "pgroonga" ("text")`,
);
await queryRunner.query(
`CREATE INDEX "IDX_065d4d8f3b5adb4a08841eae3c" ON "user" USING "pgroonga" ("name" pgroonga_varchar_full_text_search_ops_v2)`,
);
await queryRunner.query(
2023-10-30 19:21:02 +09:00
`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_fcb770976ff8240af5799e3ffc"`,
);
await queryRunner.query(
`DROP INDEX "public"."IDX_065d4d8f3b5adb4a08841eae3c"`,
);
await queryRunner.query(
`DROP INDEX "public"."IDX_f27f5d88941e57442be75ba9c8"`,
);
}
}