re-reconcile migrations

This commit is contained in:
Rory&
2026-04-14 23:56:14 +02:00
parent 8851d7002d
commit 964734e354
2 changed files with 16 additions and 0 deletions
+2
View File
@@ -11,6 +11,8 @@ let
in
{
name = "test-bundle-starts";
skipTypeCheck = true;
skipLint = true;
nodes.machine = {
imports = [ self.nixosModules.default ];
@@ -0,0 +1,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.");
}
}