Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update V20240625141100__process_details_ddl.sql #1307

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading