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);`, - ); - } -}