Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
n1lsqn committed Feb 1, 2024
1 parent c87b697 commit fe3cf18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/backend/migration/1706739426946-Pgroonga.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ export class Pgroonga1706739426946 {

async up(queryRunner) {
await queryRunner.query(`CREATE EXTENSION IF NOT EXISTS pgroonga;`);
await queryRunner.query(`CREATE INDEX IF NOT EXISTS pgroonga_index ON "note" USING pgroonga (text);`);
await queryRunner.query(`CREATE INDEX IF NOT EXISTS pgroonga_index ON "user" USING pgroonga (name pgroonga_varchar_full_text_search_ops_v2);`);
await queryRunner.query(`CREATE INDEX IF NOT EXISTS pgroonga_index ON "user_profile" USING pgroonga (description pgroonga_varchar_full_text_search_ops_v2);`);
await queryRunner.query(`CREATE INDEX IF NOT EXISTS pgroonga_index ON "note" USING "pgroonga" ("text");`);
await queryRunner.query(`CREATE INDEX IF NOT EXISTS pgroonga_index ON "user" USING "pgroonga" ("name" pgroonga_varchar_full_text_search_ops_v2);`);
await queryRunner.query(`CREATE INDEX IF NOT EXISTS pgroonga_index ON "user_profile" USING "pgroonga" (description pgroonga_varchar_full_text_search_ops_v2);`);
}

async down(queryRunner) {
await queryRunner.query(`DROP EXTENSION IF EXISTS pgroonga;`);
// await queryRunner.query(`DROP EXTENSION IF EXISTS pgroonga;`);
await queryRunner.query(`DROP INDEX IF EXISTS pgroonga_index;`);
}
}

0 comments on commit fe3cf18

Please sign in to comment.