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

Former-commit-id: daa2f2ba43 [formerly 41e43a169b] [formerly 3d6ebf498e] [formerly daa2f2ba43 [formerly 41e43a169b] [formerly 3d6ebf498e] [formerly ede510dd91 [formerly 3d6ebf498e [formerly afcfc72329522c2d731a4afe9353632effb9cb23]]]]
Former-commit-id: ede510dd91
Former-commit-id: 0b5059d6aa [formerly b202d62214] [formerly ef0f92e418f1be10b9211b5d53757234b102506e [formerly be18d1f63c]]
Former-commit-id: 0001a7448852b3c1979c9e8030be312102e13bfb [formerly a3ac9604e6]
Former-commit-id: 24724a8819
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)