Fixed long RLS name
This commit is contained in:
@@ -93,7 +93,7 @@ comment on table public.calendar_months is 'A calendar month.';
|
||||
create table public.calendar_event_categories (
|
||||
id bigint generated by default as identity primary key,
|
||||
name text not null,
|
||||
color app_colors default 'black',
|
||||
color app_colors default 'white',
|
||||
calendar_id bigint references public.calendars on delete cascade not null
|
||||
);
|
||||
comment on table public.calendar_event_categories is 'Categories describing events.';
|
||||
@@ -136,7 +136,7 @@ comment on table public.calendar_event_categories_links is 'Link tables for mult
|
||||
create table public.character_categories (
|
||||
id bigint generated by default as identity primary key,
|
||||
name text not null,
|
||||
color app_colors default 'black',
|
||||
color app_colors default 'white',
|
||||
created_at timestamptz default now(),
|
||||
updated_at timestamptz,
|
||||
world_id bigint references public.worlds on delete cascade not null
|
||||
@@ -335,7 +335,7 @@ create policy "Allow GMs to delete their calendar's months"
|
||||
);
|
||||
|
||||
-- Event policies
|
||||
create policy "Allow anonymous access to non-hidden events in published calendars" on public.calendar_events
|
||||
create policy "Allow anon access to non-hidden events in published calendars" on public.calendar_events
|
||||
for select
|
||||
to authenticated, anon
|
||||
using (
|
||||
|
||||
Reference in New Issue
Block a user