react-code-dataset / goalert /migrate /migrations /20170808110638-user-email-nullable-allowed.sql
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
248 Bytes
-- +migrate Up
ALTER TABLE users
DROP CONSTRAINT goalert_user_email_key,
ALTER COLUMN EMAIL SET DEFAULT '';
-- +migrate Down
ALTER TABLE users
ADD CONSTRAINT goalert_user_email_key UNIQUE (email),
ALTER COLUMN EMAIL DROP DEFAULT;