From 050c87cae4cb08b28b1c90393d6b1aaebdf69b81 Mon Sep 17 00:00:00 2001 From: ali ebrahimi Date: Tue, 20 Aug 2024 05:38:34 +0330 Subject: [PATCH] Remove redundant migration --- ...eUniqueConstraintOnNotificationTypeName.ts | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 migrations/1723505195659-RemoveUniqueConstraintOnNotificationTypeName.ts diff --git a/migrations/1723505195659-RemoveUniqueConstraintOnNotificationTypeName.ts b/migrations/1723505195659-RemoveUniqueConstraintOnNotificationTypeName.ts deleted file mode 100644 index 43d755f..0000000 --- a/migrations/1723505195659-RemoveUniqueConstraintOnNotificationTypeName.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { MigrationInterface, QueryRunner } from 'typeorm'; - -export class RemoveUniqueConstraintOnNotificationTypeName1723505195659 - implements MigrationInterface -{ - public async up(queryRunner: QueryRunner): Promise { - // Dropping the unique constraint on the name column - await queryRunner.query( - `ALTER TABLE notification_type DROP CONSTRAINT IF EXISTS "UQ_notification_type_name";`, - ); - } - - public async down(queryRunner: QueryRunner): Promise { - // Re-adding the unique constraint if you need to roll back the migration - await queryRunner.query( - `ALTER TABLE notification_type ADD CONSTRAINT "UQ_notification_type_name" UNIQUE (name);`, - ); - } -}