summary refs log tree commit diff
path: root/src/database/migration/postgres/177617864199-ReconcileMigrationsAgain.ts
blob: e8a68f135c80d398933f3aa830a8efd53563495d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { MigrationInterface, QueryRunner } from "typeorm";

export class ReconcileMigrationsAgain1776178641999 implements MigrationInterface {
    name = "ReconcileMigrationsAgain1776178641999";

    public async up(queryRunner: QueryRunner): Promise<void> {
        // since we're no longer using syncDb()!
        await queryRunner.query(`ALTER TABLE "webhooks" DROP CONSTRAINT IF EXISTS "fk_d64f38834fa676f6caa4786ddd6"`);
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        console.log("no.");
    }
}