awips2/deltaScripts/14.2.1/updateMadisTableConstraint.sql
Dave Hladky daa2f2ba43 Issue #2949 Updated scripts
Change-Id: I36f39d59e8aa1abc8cefd5ed100cbfd70eedaa80

Former-commit-id: ede510dd91 [formerly 3d6ebf498e [formerly afcfc72329522c2d731a4afe9353632effb9cb23]]
Former-commit-id: 3d6ebf498e
Former-commit-id: 41e43a169b
2014-04-01 12:33:48 -05:00

3 lines
298 B
SQL

alter table if exists madis drop constraint madis_location_reftime_provider_subprovider_restriction_key;
alter table if exists madis add CONSTRAINT madis_latitude_longitude_stationid_reftime_provider_subprovider UNIQUE (latitude, longitude, stationid, reftime, provider, subprovider, restriction)