Skip to content

Commit c5bdda8

Browse files
committed
2 parents dd3a15a + b56a03a commit c5bdda8

4 files changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--hesae_diagnosis
2+
ALTER TABLE {SOURCE_SCHEMA}.hesae_diagnosis ADD CONSTRAINT pk_hesae_diagnosis PRIMARY KEY (patid, aekey,diag_order) USING INDEX TABLESPACE pg_default;
3+
create index idx_hesae_diagnosis_patid on {SOURCE_SCHEMA}.hesae_diagnosis(patid,aekey) TABLESPACE pg_default;
4+
cluster {SOURCE_SCHEMA}.hesae_diagnosis using idx_hesae_diagnosis_patid;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--hesae_hrg
2+
ALTER TABLE {SOURCE_SCHEMA}.hesae_hrg ADD CONSTRAINT pk_hesae_hrg PRIMARY KEY (patid, aekey) USING INDEX TABLESPACE pg_default;
3+
create index idx_hesae_hrg_patid on {SOURCE_SCHEMA}.hesae_hrg(patid,aekey) TABLESPACE pg_default;
4+
cluster {SOURCE_SCHEMA}.hesae_hrg using idx_hesae_hrg_patid;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--hesae_investigation
2+
ALTER TABLE {SOURCE_SCHEMA}.hesae_investigation ADD CONSTRAINT pk_hesae_investigation PRIMARY KEY (patid, aekey) USING INDEX TABLESPACE pg_default;
3+
create index idx_hesae_investigation_patid on {SOURCE_SCHEMA}.hesae_investigation(patid,aekey) TABLESPACE pg_default;
4+
cluster {SOURCE_SCHEMA}.hesae_investigation using idx_hesae_investigation_patid;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--hesae_treatment
2+
ALTER TABLE {SOURCE_SCHEMA}.hesae_treatment ADD CONSTRAINT pk_hesae_treatment PRIMARY KEY (patid, aekey) USING INDEX TABLESPACE pg_default;
3+
create index idx_hesae_treatment_patid on {SOURCE_SCHEMA}.hesae_treatment(patid,aekey) TABLESPACE pg_default;
4+
cluster {SOURCE_SCHEMA}.hesae_treatment using idx_hesae_treatment_patid;

0 commit comments

Comments
 (0)