trashposs/packages/backend/migration/1695861526125-index-note-userid.js
2023-09-28 02:51:24 +02:00

11 lines
298 B
JavaScript

export class IndexNoteUserId1695861526125 {
name = "IndexNoteUserId1695861526125";
async up(queryRunner) {
await queryRunner.query(`CREATE INDEX "IDX_note_userId_id" ON "note" ("userId", "id")`);
}
async down(queryRunner) {
await queryRunner.query(`DROP INDEX "IDX_note_userId_id"`);
}
}