jormungandr-bite/packages/backend/migration/1695748502971-index-note-url.js

11 lines
296 B
JavaScript
Raw Normal View History

2023-09-26 13:38:20 -06:00
export class IndexNoteUrl1695748502971 {
name = "IndexNoteUrl1695748502971";
async up(queryRunner) {
await queryRunner.query(`CREATE INDEX IF NOT EXISTS "IDX_note_url" ON "note" ("url") `);
}
async down(queryRunner) {
await queryRunner.query(`DROP INDEX IF EXISTS "IDX_note_url"`);
}
}