agepoly-events/db/migrations/20260730002032_add_role_to_event_committee.sql
Antoine Pelletier 52363d59ac first commit
2026-07-30 06:26:31 +02:00

9 lines
330 B
SQL

-- migrate:up
-- A member's role/position can change from one event to another, so it lives
-- on the join row rather than on the user.
ALTER TABLE event_committee ADD COLUMN role TEXT NOT NULL DEFAULT '';
ALTER TABLE event_committee ALTER COLUMN role DROP DEFAULT;
-- migrate:down
ALTER TABLE event_committee DROP COLUMN role;