2024-03-03 05:20:32 +01:00
|
|
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
2022-04-02 08:28:49 +02:00
|
|
|
|
2024-03-03 05:20:32 +01:00
|
|
|
export class webhook21648816172177 implements MigrationInterface {
|
|
|
|
async up(queryRunner: QueryRunner): Promise<void> {
|
2023-04-07 03:56:46 +02:00
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "webhook" ADD "latestSentAt" TIMESTAMP WITH TIME ZONE`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(`ALTER TABLE "webhook" ADD "latestStatus" integer`);
|
|
|
|
}
|
2022-04-02 08:28:49 +02:00
|
|
|
|
2024-03-03 05:20:32 +01:00
|
|
|
async down(queryRunner: QueryRunner): Promise<void> {
|
2023-04-07 03:56:46 +02:00
|
|
|
await queryRunner.query(`ALTER TABLE "webhook" DROP COLUMN "latestStatus"`);
|
|
|
|
await queryRunner.query(`ALTER TABLE "webhook" DROP COLUMN "latestSentAt"`);
|
|
|
|
}
|
2022-04-02 08:28:49 +02:00
|
|
|
}
|