From 5d6832a8cfd3ff754877bd9396a90b2fb8a7a54c Mon Sep 17 00:00:00 2001 From: dominicwest Date: Thu, 31 Aug 2023 15:33:17 +0100 Subject: [PATCH] Removing unique constraints on tables with foreign key constraints --- .../db/migration/V1_64__add_unique_constraints_to_users.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/resources/db/migration/V1_64__add_unique_constraints_to_users.sql b/src/main/resources/db/migration/V1_64__add_unique_constraints_to_users.sql index 1073e739..8fb8d785 100644 --- a/src/main/resources/db/migration/V1_64__add_unique_constraints_to_users.sql +++ b/src/main/resources/db/migration/V1_64__add_unique_constraints_to_users.sql @@ -1,4 +1,2 @@ ALTER TABLE gap_user ADD CONSTRAINT unique_user_sub UNIQUE (user_sub); -ALTER TABLE grant_applicant ADD CONSTRAINT unique_user_id UNIQUE (user_id); -ALTER TABLE grant_admin ADD CONSTRAINT unique_user_id UNIQUE (user_id); -ALTER TABLE grant_applicant_organisation_profile ADD CONSTRAINT unique_applicant_id UNIQUE (applicant_id); \ No newline at end of file +ALTER TABLE grant_applicant ADD CONSTRAINT unique_user_id UNIQUE (user_id); \ No newline at end of file