react-code-dataset / goalert /migrate /migrations /20170621170744-add-country-code.sql
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
274 Bytes
-- +migrate Up
UPDATE user_contact_methods SET value = '+'||value WHERE (type = 'SMS' OR type = 'VOICE') AND value NOT LIKE '+%';
-- +migrate Down
UPDATE user_contact_methods SET value = substring(value from 2) WHERE (type = 'SMS' OR type = 'VOICE') AND value LIKE '+%';