From ef92cb13814502873f4355a42e82589bce3a6868 Mon Sep 17 00:00:00 2001 From: Ganesh Nawle Date: Wed, 10 Jul 2024 19:43:13 +0530 Subject: [PATCH] fix: prisma migration issue Signed-off-by: Ganesh Nawle --- .../migration.sql | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 libs/prisma-service/prisma/migrations/20240705122314_added_schema_identifier_in_file_upload/migration.sql diff --git a/libs/prisma-service/prisma/migrations/20240705122314_added_schema_identifier_in_file_upload/migration.sql b/libs/prisma-service/prisma/migrations/20240705122314_added_schema_identifier_in_file_upload/migration.sql deleted file mode 100644 index 0f9025c7b..000000000 --- a/libs/prisma-service/prisma/migrations/20240705122314_added_schema_identifier_in_file_upload/migration.sql +++ /dev/null @@ -1,15 +0,0 @@ -/* - Warnings: - - - A unique constraint covering the columns `[schemaLedgerId]` on the table `schema` will be added. If there are existing duplicate values, this will fail. - - Added the required column `schemaIdentifier` to the `file_upload` table without a default value. This is not possible if the table is not empty. - -*/ --- AlterTable -ALTER TABLE "file_upload" ADD COLUMN "schemaIdentifier" VARCHAR NOT NULL; - --- CreateIndex -CREATE UNIQUE INDEX "schema_schemaLedgerId_key" ON "schema"("schemaLedgerId"); - --- AddForeignKey -ALTER TABLE "file_upload" ADD CONSTRAINT "file_upload_schemaIdentifier_fkey" FOREIGN KEY ("schemaIdentifier") REFERENCES "schema"("schemaLedgerId") ON DELETE RESTRICT ON UPDATE CASCADE;