1
0
Fork 1
mirror of https://example.com synced 2024-11-25 01:06:38 +09:00

fix (backend): incorrect database index

Co-authored-by: sup39 <dev@sup39.dev>
This commit is contained in:
naskya 2024-02-28 23:21:04 +09:00
parent d31f3de7aa
commit 45b0223d30
Signed by: naskya
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',
'IndexAltTextAndCw1708872574733',
'SeparateHardMuteWordsAndPatterns1706413792769',
'RenameMetaColumns1705944717480',

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 */
}
}