1
0
Fork 1
mirror of https://example.com synced 2024-11-22 23:36:38 +09:00
firefish/packages/backend/migration-neko/1709129810501-fix-note-url-index.js
naskya 45b0223d30
fix (backend): incorrect database index
Co-authored-by: sup39 <dev@sup39.dev>
2024-02-28 23:21:04 +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 */
}
}