1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-01 00:08:31 +09:00
cherrypick/packages/backend/migration/1720161864577-AddDeleteAt.js

12 lines
314 B
JavaScript

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