Skip to content

Commit

Permalink
fix: prisma migration issue
Browse files Browse the repository at this point in the history
Signed-off-by: Ganesh Nawle <ganesh.nawle@ayanworks.com>
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
  • Loading branch information
ganeshawle25 authored and KulkarniShashank committed Sep 11, 2024
1 parent 649832f commit df87c2b
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
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;

0 comments on commit df87c2b

Please sign in to comment.