serverctl/migrations/002_emails_are_unique_for_user.sql

11 lines
300 B
MySQL
Raw Normal View History

2022-02-13 21:45:27 +01:00
-- Write your migrate up statements here
2022-02-14 01:25:36 +01:00
create unique index user_email_unique_index
on sctl_user(email);
2022-02-13 21:45:27 +01:00
---- create above / drop below ----
2022-02-14 01:25:36 +01:00
drop index user_email_unique_index;
2022-02-13 21:45:27 +01:00
-- Write your migrate down statements here. If this migration is irreversible
-- Then delete the separator line above.