Files
dyolink/backend/prisma/migrations/20260716120000_tooth_selection_groups/migration.sql

15 lines
653 B
SQL

-- AlterTable
ALTER TABLE "treatment_details" ADD COLUMN "toothSelectionGroups" JSONB;
-- AlterTable
ALTER TABLE "lab_case_tooth_prosthesis" ADD COLUMN "selectionGroupId" TEXT NOT NULL DEFAULT '';
-- AlterTable
ALTER TABLE "lab_case_tasks" ADD COLUMN "selectionGroupId" TEXT NOT NULL DEFAULT '';
-- DropIndex
DROP INDEX IF EXISTS "lab_case_tasks_labCaseId_treatmentDetailId_prosthesisTypeCode_stepOrder_key";
-- CreateIndex
CREATE UNIQUE INDEX "lab_case_tasks_labCaseId_treatmentDetailId_selectionGroupId_prosthesisTypeCode_stepOrder_key" ON "lab_case_tasks"("labCaseId", "treatmentDetailId", "selectionGroupId", "prosthesisTypeCode", "stepOrder");