Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

644 B
Raw Blame
-- DropForeignKey
ALTER TABLE "Tree" DROP CONSTRAINT "Tree_buildId_fkey";

-- AlterTable
ALTER TABLE "Asset" DROP CONSTRAINT "Asset_pkey",
ADD CONSTRAINT "Asset_pkey" PRIMARY KEY ("id", "projectId");

-- AlterTable
ALTER TABLE "Build" DROP CONSTRAINT "Build_pkey",
ADD CONSTRAINT "Build_pkey" PRIMARY KEY ("id", "projectId");

-- AlterTable
ALTER TABLE "Tree" DROP CONSTRAINT "Tree_pkey",
ADD CONSTRAINT "Tree_pkey" PRIMARY KEY ("id", "projectId");

-- AddForeignKey
ALTER TABLE "Tree" ADD CONSTRAINT "Tree_buildId_projectId_fkey" FOREIGN KEY ("buildId", "projectId") REFERENCES "Build"("id", "projectId") ON DELETE RESTRICT ON UPDATE CASCADE;