From 057fa0ae04233224391363d61bf69d3f7cc30761 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Thu, 3 Aug 2023 16:50:09 -0700 Subject: [PATCH] Remove constraint activity morph relations foreign keys --- .../migration.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/database/migrations/20230803115502_add_entities_on_pipeline_progress/migration.sql b/server/src/database/migrations/20230803115502_add_entities_on_pipeline_progress/migration.sql index 003a2e7ee..ccc3c5c87 100644 --- a/server/src/database/migrations/20230803115502_add_entities_on_pipeline_progress/migration.sql +++ b/server/src/database/migrations/20230803115502_add_entities_on_pipeline_progress/migration.sql @@ -3,7 +3,7 @@ ALTER TABLE "pipeline_progresses" ADD COLUMN "companyId" TEXT, ADD COLUMN "personId" TEXT; -- AddForeignKey -ALTER TABLE "pipeline_progresses" ADD CONSTRAINT "pipeline_progresses_companyId_fkey" FOREIGN KEY ("companyId") REFERENCES "companies"("id") ON DELETE SET NULL ON UPDATE CASCADE; +--ALTER TABLE "pipeline_progresses" ADD CONSTRAINT "pipeline_progresses_companyId_fkey" FOREIGN KEY ("companyId") REFERENCES "companies"("id") ON DELETE SET NULL ON UPDATE CASCADE; -- AddForeignKey -ALTER TABLE "pipeline_progresses" ADD CONSTRAINT "pipeline_progresses_personId_fkey" FOREIGN KEY ("personId") REFERENCES "people"("id") ON DELETE SET NULL ON UPDATE CASCADE; +--ALTER TABLE "pipeline_progresses" ADD CONSTRAINT "pipeline_progresses_personId_fkey" FOREIGN KEY ("personId") REFERENCES "people"("id") ON DELETE SET NULL ON UPDATE CASCADE;