fix (backend): incorrect database index

Sorry for my silly mistake (cf. 9d56db0fbf 4356099fec)
This commit is contained in:
naskya 2024-02-28 23:28:09 +09:00
parent 2873bcfebb
commit d30239b5e7
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
2 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,7 @@
BEGIN;
DELETE FROM "migrations" WHERE name IN (
'FixNoteUrlIndex1709129810501',
'RemoveCharts1709047957489',
'DropUserProfileLanguage1708452631156',
'EmojiModerator1692825433698',

View File

@ -0,0 +1,11 @@
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 */
}
}