mizzkey/packages/backend/migration/1699949373507-schedulenote2.js
mattyatea 271c872c97
expiresAt to scheduledAt
Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
2023-11-14 17:27:52 +09:00

12 lines
368 B
JavaScript

export class Schedulenote21699949373507 {
name = 'Schedulenote21699949373507'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "note_schedule" RENAME COLUMN "expiresAt" TO "scheduledAt"`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "note_schedule" RENAME COLUMN "scheduledAt" TO "expiresAt"`);
}
}