hippofish/packages/backend/migration/1709129810501-fix-note-url-index.js
2024-02-28 23:28:09 +09:00

11 lines
317 B
JavaScript

export class FixNoteUrlIndex1709129810501 {
name = "FixNoteUrlIndex1709129810501";
async up(queryRunner) {
await queryRunner.query(`DROP INDEX "IDX_note_url"`);
await queryRunner.query(`CREATE INDEX "IDX_note_url" ON "note" ("url")`);
}
async down(queryRunner) {
/* You don't revert this migration */
}
}