Skip to content

Commit 5e81eba

Browse files
committed
enable rls on table todo in script
1 parent d98d4db commit 5e81eba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql-scripts/build-todo-app.sql

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
,status todo_status not null default 'incomplete'
1919
);
2020
----------------------------------------------------------------------------------------------
21+
ALTER TABLE todo ENABLE ROW LEVEL SECURITY;
2122
create policy "Individuals can create todos." on todo for
2223
insert with check (auth.uid() = user_id);
2324
create policy "Individuals can view their own todos. " on todo for

0 commit comments

Comments
 (0)