-- Migration 020: Add vice_president role to user_organizations
-- This adds the vice_president role to the CHECK constraint on the role column.

ALTER TABLE shared.user_organizations
  DROP CONSTRAINT IF EXISTS user_organizations_role_check;

ALTER TABLE shared.user_organizations
  ADD CONSTRAINT user_organizations_role_check
  CHECK (role IN ('president', 'vice_president', 'treasurer', 'secretary', 'member_at_large', 'manager', 'homeowner', 'admin', 'viewer'));
