paricafe/packages/backend/migration/1706162844037-edit-note-nya.js
2024-09-15 11:01:36 +08:00

13 lines
479 B
JavaScript

export class EditNoteNya1706162844037 {
name = 'EditNoteNya1706162844037'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" ADD "updatedAt" TIMESTAMP WITH TIME ZONE`);
await queryRunner.query(`ALTER TABLE "note" ADD "history" jsonb`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "history"`);
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "updatedAt"`);
}
}