jws-backend/prisma/migrations/20241128064526_change_currently_unused_field/migration.sql
2024-11-28 13:47:04 +07:00

15 lines
521 B
SQL

/*
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;