From 3b433b74ebdb815f9efe5d5c7519c9a24e49c179 Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Wed, 21 Aug 2024 15:04:19 +0530 Subject: [PATCH 1/2] Update V20240625141100__process_details_ddl.sql --- .../migration/main/V20240625141100__process_details_ddl.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities/project-factory/migration/main/V20240625141100__process_details_ddl.sql b/utilities/project-factory/migration/main/V20240625141100__process_details_ddl.sql index e7b4037bd8d..6a3d7807fb3 100644 --- a/utilities/project-factory/migration/main/V20240625141100__process_details_ddl.sql +++ b/utilities/project-factory/migration/main/V20240625141100__process_details_ddl.sql @@ -1,4 +1,4 @@ -CREATE TABLE health.eg_cm_campaign_process ( +CREATE TABLE eg_cm_campaign_process ( id VARCHAR(128) PRIMARY KEY, campaignId VARCHAR(128) NOT NULL, type VARCHAR(128), @@ -7,5 +7,5 @@ CREATE TABLE health.eg_cm_campaign_process ( createdtime BIGINT, lastmodifiedtime BIGINT, additionaldetails JSONB, - CONSTRAINT fk_campaignId FOREIGN KEY (campaignId) REFERENCES health.eg_cm_campaign_details(id) + CONSTRAINT fk_campaignId FOREIGN KEY (campaignId) REFERENCES eg_cm_campaign_details(id) ); From f65a046e9654461ee5033849489323b5ab933a5a Mon Sep 17 00:00:00 2001 From: ashish-egov <137176738+ashish-egov@users.noreply.github.com> Date: Wed, 21 Aug 2024 15:05:51 +0530 Subject: [PATCH 2/2] Update V20240731162600__add_uniqiue_constraint_process_track.sql (#1308) --- .../V20240731162600__add_uniqiue_constraint_process_track.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/project-factory/migration/main/V20240731162600__add_uniqiue_constraint_process_track.sql b/utilities/project-factory/migration/main/V20240731162600__add_uniqiue_constraint_process_track.sql index d9bfbd0af53..b1be686a855 100644 --- a/utilities/project-factory/migration/main/V20240731162600__add_uniqiue_constraint_process_track.sql +++ b/utilities/project-factory/migration/main/V20240731162600__add_uniqiue_constraint_process_track.sql @@ -1,6 +1,6 @@ -- Step 1: Remove duplicate rows DELETE FROM eg_cm_campaign_process a -USING health.eg_cm_campaign_process b +USING eg_cm_campaign_process b WHERE a.id < b.id AND a.campaignId = b.campaignId AND a.type = b.type;