From bae89d05c75334a8d65c4ab0f1a05ee5f54f7a7b Mon Sep 17 00:00:00 2001 From: Ryan Rondeau Date: Thu, 9 Jan 2025 11:14:37 -0800 Subject: [PATCH] Update V0.33.0__CE-1336.sql --- migrations/migrations/V0.33.0__CE-1336.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/migrations/migrations/V0.33.0__CE-1336.sql b/migrations/migrations/V0.33.0__CE-1336.sql index e13ebbfdc..1e0cec438 100644 --- a/migrations/migrations/V0.33.0__CE-1336.sql +++ b/migrations/migrations/V0.33.0__CE-1336.sql @@ -1,2 +1,5 @@ UPDATE hwcr_complaint_nature_code SET long_description = 'Livestock/pets - killed/injured - not present' WHERE hwcr_complaint_nature_code = 'LIVNCOU'; -UPDATE hwcr_complaint_nature_code SET long_description = 'Livestock/pets - killed/injured - present/recent/suspected' WHERE hwcr_complaint_nature_code = 'LIVPRES'; \ No newline at end of file +UPDATE hwcr_complaint_nature_code SET long_description = 'Livestock/pets - killed/injured - present/recent/suspected' WHERE hwcr_complaint_nature_code = 'LIVPRES'; + +-- Add unique constraing on staging_metadata_mapping for entity_code, staged_data_value, live_data_value +ALTER TABLE public.staging_metadata_mapping ADD CONSTRAINT staging_metadata_mapping_unique UNIQUE (entity_code, staged_data_value, live_data_value); \ No newline at end of file