paricafe/packages/backend/migration/1727998351591-after-increase_character_limits copy.js
2024-11-16 18:27:27 +08:00

17 lines
624 B
JavaScript

export class AfterIncreaseCharacterLimits1727998351591 {
name = 'AfterIncreaseCharacterLimits1727998351591'
async up(queryRunner) {
await queryRunner.query(`DROP INDEX "IDX_7cc8d9b0ee7861b4e5dc86ad85"`);
await queryRunner.query(
`CREATE INDEX IF NOT EXISTS "IDX_7cc8d9b0ee7861b4e5dc86ad85" ON "note" USING "pgroonga" ("cw")`,
);
}
async down(queryRunner) {
await queryRunner.query(`DROP INDEX "IDX_7cc8d9b0ee7861b4e5dc86ad85"`);
await queryRunner.query(
`CREATE INDEX IF NOT EXISTS "IDX_7cc8d9b0ee7861b4e5dc86ad85" ON "note" USING "pgroonga" ("cw" pgroonga_varchar_full_text_search_ops_v2)`,
);
}
}