mirror of
https://github.com/kokonect-link/cherrypick
synced 2025-01-10 03:43:48 +09:00
13 lines
406 B
JavaScript
13 lines
406 B
JavaScript
|
export class NoteUpdatedAt1704185628000 {
|
||
|
name = 'NoteUpdatedAt1704185628000'
|
||
|
|
||
|
async up(queryRunner) {
|
||
|
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "updatedAt"`);
|
||
|
await queryRunner.query(`ALTER TABLE "note" ADD "updatedAt" TIMESTAMP WITH TIME ZONE`);
|
||
|
}
|
||
|
|
||
|
async down(queryRunner) {
|
||
|
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "updatedAt"`);
|
||
|
}
|
||
|
}
|