Skip to content
Browse files

Make comment about crs_mark.audit_id corrupt data

git-svn-id: svn://localhost/linz_bde_uploader@1302 40957e5d-2553-1d4f-9b5d-fe299c199263
  • Loading branch information...
1 parent 8ec3604 commit 0781cabda4d4fe797c3d40196f1e49979b18ccc4 @palmerj palmerj committed Jun 17, 2011
Showing with 7 additions and 2 deletions.
  1. +4 −2 sql/bde_schema_index.sql
  2. +3 −0 sql/bde_schema_index_lds.sql
View
6 sql/bde_schema_index.sql
@@ -234,7 +234,7 @@ CREATE INDEX fk_jtl_tkl ON crs_job_task_list USING btree (tkl_id);
CREATE INDEX fk_jtl_usr ON crs_job_task_list USING btree (usr_id);
CREATE INDEX idx_jtl_date_comp ON crs_job_task_list USING btree (date_completed);
CREATE INDEX idx_crs_jtl_stat ON crs_job_task_list USING btree (status, usr_id);
-CREATE INDEX idx_jtl_audit_id ON crs_job_task_list USING btree (audit_id);
+CREATE UNIQUE INDEX idx_jtl_audit_id ON crs_job_task_list USING btree (audit_id);
*/
@@ -295,6 +295,8 @@ CREATE INDEX fk_mark_wrk ON crs_mark USING btree (wrk_id_created);
CREATE INDEX fk_mrk_mrk_dist ON crs_mark USING btree (mrk_id_dist);
CREATE INDEX fk_mrk_mrk_rep ON crs_mark USING btree (mrk_id_repl);
CREATE INDEX fk_mrk_nod ON crs_mark USING btree (nod_id);
+-- Currently crs_mark.audit_id can not be made unique due to production
+-- having bad data and not having a unique constraint applied
CREATE INDEX idx_mrk_aud_id ON crs_mark USING btree (audit_id);
-------------------------------------------------------------------------------
@@ -794,7 +796,7 @@ CREATE INDEX fk_tin_pro ON crs_ttl_inst USING btree (pro_id);
CREATE INDEX fk_tin_tin ON crs_ttl_inst USING btree (tin_id_parent);
CREATE INDEX fk_tin_trt ON crs_ttl_inst USING btree (trt_grp, trt_type);
CREATE INDEX fk_tin_usr ON crs_ttl_inst USING btree (usr_id_approve);
-CREATE INDEX idx_tin_aud_id ON crs_ttl_inst USING btree (audit_id);
+CREATE UNIQUE INDEX idx_tin_aud_id ON crs_ttl_inst USING btree (audit_id);
-------------------------------------------------------------------------------
-- crs_ttl_inst_title
View
3 sql/bde_schema_index_lds.sql
@@ -200,6 +200,9 @@ CREATE UNIQUE INDEX idx_map_aud_id ON crs_map_grid USING btree (audit_id);
-- crs_mark
-------------------------------------------------------------------------------
CREATE INDEX fk_mrk_nod ON crs_mark USING btree (nod_id);
+-- Currently crs_mark.audit_id can not be made unique due to production
+-- having bad data and not having a unique constraint applied
+CREATE INDEX idx_mrk_aud_id ON crs_mark USING btree (audit_id);
-------------------------------------------------------------------------------
-- crs_mark_name

0 comments on commit 0781cab

Please sign in to comment.
Something went wrong with that request. Please try again.