summaryrefslogtreecommitdiff
path: root/packages/backend/migration/1648816172177-webhook-2.js
blob: 2feb68d6114382d7bad0e5161a918cfa4d11cb32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export class webhook21648816172177 {
    name = 'webhook21648816172177'

    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "webhook" ADD "latestSentAt" TIMESTAMP WITH TIME ZONE`);
        await queryRunner.query(`ALTER TABLE "webhook" ADD "latestStatus" integer`);
    }

    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "webhook" DROP COLUMN "latestStatus"`);
        await queryRunner.query(`ALTER TABLE "webhook" DROP COLUMN "latestSentAt"`);
    }
}