react-code-dataset / goalert /migrate /migrations /20170619123628-add-constraints.sql
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
231 Bytes
-- +migrate Up
ALTER TABLE escalation_policy ADD UNIQUE(name);
ALTER TABLE service ADD UNIQUE(name);
-- +migrate Down
ALTER TABLE escalation_policy DROP CONSTRAINT UNIQUE(name);
ALTER TABLE service DROP CONSTRAINT UNIQUE(name);