Skip to content

Commit

Permalink
Update V20240625141100__process_details_ddl.sql (#1307)
Browse files Browse the repository at this point in the history
* Update V20240625141100__process_details_ddl.sql

* Update V20240731162600__add_uniqiue_constraint_process_track.sql (#1308)
  • Loading branch information
ashish-egov authored Aug 21, 2024
1 parent b62a68f commit 8c7a0cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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),
Expand All @@ -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)
);
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 8c7a0cf

Please sign in to comment.