14 lines
728 B
SQL
14 lines
728 B
SQL
/*
|
|
* Pre-module enum values: add all module-specific permission enum values
|
|
* in a separate transaction. Postgres requires new enum values to be
|
|
* committed before they can be used in policies/functions.
|
|
*
|
|
* Covers: fischerei, sitzungsprotokolle, verbandsverwaltung
|
|
*/
|
|
ALTER TYPE public.app_permissions ADD VALUE IF NOT EXISTS 'fischerei.read';
|
|
ALTER TYPE public.app_permissions ADD VALUE IF NOT EXISTS 'fischerei.write';
|
|
ALTER TYPE public.app_permissions ADD VALUE IF NOT EXISTS 'meetings.read';
|
|
ALTER TYPE public.app_permissions ADD VALUE IF NOT EXISTS 'meetings.write';
|
|
ALTER TYPE public.app_permissions ADD VALUE IF NOT EXISTS 'verband.read';
|
|
ALTER TYPE public.app_permissions ADD VALUE IF NOT EXISTS 'verband.write';
|