Files
miem_workers/migrations/014_system_user_council_role.sql
codex 508aae4f8a
CI / Fingerprint diagnostics (production deployment temporarily disabled) (pull_request) Canceled after 0s
CI / test (pull_request) Canceled after 10m43s
feat: add council user role and restrict crawl runs
2026-11-12 09:35:26 +00:00

7 lines
206 B
PL/PgSQL

BEGIN;
SET LOCAL lock_timeout = '5s';
ALTER TABLE public.system_users
DROP CONSTRAINT ck_system_users_role,
ADD CONSTRAINT ck_system_users_role CHECK (role IN ('admin', 'user', 'council'));
COMMIT;