awips2/deltaScripts/14.2.1/updateMadisTableConstraint.sql

4 lines
298 B
MySQL
Raw Normal View History

2017-04-21 18:33:55 -06:00
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)