summary refs log tree commit diff
path: root/util/src/migrations/postgres/1660416055566-InvitersAreDeletable.ts
diff options
context:
space:
mode:
Diffstat (limited to 'util/src/migrations/postgres/1660416055566-InvitersAreDeletable.ts')
-rw-r--r--util/src/migrations/postgres/1660416055566-InvitersAreDeletable.ts26
1 files changed, 0 insertions, 26 deletions
diff --git a/util/src/migrations/postgres/1660416055566-InvitersAreDeletable.ts b/util/src/migrations/postgres/1660416055566-InvitersAreDeletable.ts
deleted file mode 100644
index e6101318..00000000
--- a/util/src/migrations/postgres/1660416055566-InvitersAreDeletable.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import { MigrationInterface, QueryRunner } from "typeorm";
-
-export class InvitersAreDeletable1660416055566 implements MigrationInterface {
-    name = 'InvitersAreDeletable1660416055566'
-
-    public async up(queryRunner: QueryRunner): Promise<void> {
-        await queryRunner.query(`
-            ALTER TABLE "invites" DROP CONSTRAINT "FK_15c35422032e0b22b4ada95f48f"
-        `);
-        await queryRunner.query(`
-            ALTER TABLE "invites"
-            ADD CONSTRAINT "FK_15c35422032e0b22b4ada95f48f" FOREIGN KEY ("inviter_id") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE NO ACTION
-        `);
-    }
-
-    public async down(queryRunner: QueryRunner): Promise<void> {
-        await queryRunner.query(`
-            ALTER TABLE "invites" DROP CONSTRAINT "FK_15c35422032e0b22b4ada95f48f"
-        `);
-        await queryRunner.query(`
-            ALTER TABLE "invites"
-            ADD CONSTRAINT "FK_15c35422032e0b22b4ada95f48f" FOREIGN KEY ("inviter_id") REFERENCES "users"("id") ON DELETE NO ACTION ON UPDATE NO ACTION
-        `);
-    }
-
-}