phonograph/phono-models/migrations/20251212200434_invitations.up.sql
2025-12-18 20:05:46 +00:00

6 lines
276 B
SQL

-- The rel_invitations table has never been used and may be assumed to be empty.
drop table if exists rel_invitations;
alter table users add constraint email_lower check (email = lower(email));
alter table users alter column uid drop not null;
create index on users (email);