-- +mixmaker Up
ALTER TABLE discord_role_sync_jobs DROP CONSTRAINT IF EXISTS discord_role_sync_jobs_action_check;
ALTER TABLE discord_role_sync_jobs ADD CONSTRAINT discord_role_sync_jobs_action_check CHECK (
    action IN ('reconcile', 'rsvp', 'full_reconcile', 'teardown')
);

-- +mixmaker Down
DELETE FROM discord_role_sync_jobs WHERE action='full_reconcile';
ALTER TABLE discord_role_sync_jobs DROP CONSTRAINT IF EXISTS discord_role_sync_jobs_action_check;
ALTER TABLE discord_role_sync_jobs ADD CONSTRAINT discord_role_sync_jobs_action_check CHECK (
    action IN ('reconcile', 'rsvp', 'teardown')
);
