mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-14 22:45:14 +00:00
re-reconcile migrations
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user