fix (backend): incorrect database index
Co-authored-by: sup39 <dev@sup39.dev>
This commit is contained in:
parent
d31f3de7aa
commit
45b0223d30
2 changed files with 12 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
BEGIN;
|
||||
|
||||
DELETE FROM "migrations" WHERE name IN (
|
||||
'FixNoteUrlIndex1709129810501',
|
||||
'IndexAltTextAndCw1708872574733',
|
||||
'SeparateHardMuteWordsAndPatterns1706413792769',
|
||||
'RenameMetaColumns1705944717480',
|
||||
|
|
|
@ -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 */
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue