Files
sorsfonalak/crates/db/migrations/0024_person_invites.sql
T

8 lines
420 B
SQL
Raw Normal View History

2026-11-19 10:12:51 +00:00
-- "How compatible are we?" invitations from the new person page: who it is
-- for (the inviter's own name for them) and, if the inviter asked us to
-- e-mail it, the address.
ALTER TABLE synastry_invites
ADD COLUMN label text CHECK (char_length(label) <= 80),
ADD COLUMN invitee_email text;
CREATE INDEX synastry_invites_emailed_idx ON synastry_invites (inviter_id, created_at) WHERE invitee_email IS NOT NULL;