From 2894f67f65626bb29a23fb5114551d539f9823b1 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 28 Nov 2024 13:47:04 +0700 Subject: [PATCH] chore: migration --- .../migration.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 prisma/migrations/20241128064526_change_currently_unused_field/migration.sql diff --git a/prisma/migrations/20241128064526_change_currently_unused_field/migration.sql b/prisma/migrations/20241128064526_change_currently_unused_field/migration.sql new file mode 100644 index 0000000..52f04a2 --- /dev/null +++ b/prisma/migrations/20241128064526_change_currently_unused_field/migration.sql @@ -0,0 +1,15 @@ +/* + Warnings: + + - You are about to drop the column `workflowTemplateId` on the `Service` table. All the data in the column will be lost. + +*/ +-- DropForeignKey +ALTER TABLE "Service" DROP CONSTRAINT "Service_workflowTemplateId_fkey"; + +-- AlterTable +ALTER TABLE "Service" DROP COLUMN "workflowTemplateId", +ADD COLUMN "workflowId" TEXT; + +-- AddForeignKey +ALTER TABLE "Service" ADD CONSTRAINT "Service_workflowId_fkey" FOREIGN KEY ("workflowId") REFERENCES "WorkflowTemplate"("id") ON DELETE SET NULL ON UPDATE CASCADE;