summaryrefslogtreecommitdiff
path: root/migration/1579270193251-v12-2.ts
blob: efad0cd56075fb54907a4ea121dbd79315424adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import {MigrationInterface, QueryRunner} from "typeorm";

export class v1221579270193251 implements MigrationInterface {
    name = 'v1221579270193251'

    public async up(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.query(`ALTER TABLE "announcement_read" ADD "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL`, undefined);
    }

    public async down(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.query(`ALTER TABLE "announcement_read" DROP COLUMN "createdAt"`, undefined);
    }

}