Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

RLS policies update for docs search (#18973)

Jonathan Summers-Muir50f2d430ff0d
diff --git a/supabase/migrations/20231115053211_remote_schema.sql b/supabase/migrations/20231115053211_remote_schema.sql
new file mode 100644
index 00000000000..88d65a815fa
--- /dev/null
+++ b/supabase/migrations/20231115053211_remote_schema.sql
@@ -0,0 +1,20 @@
+alter table "public"."page" enable row level security;
+
+alter table "public"."page_section" enable row level security;
+
+create policy "Enable read access for anon and authenticated"
+on "public"."page"
+as permissive
+for select
+to anon, authenticated
+using (true);
+
+create policy "Enable read access for anon and authenticated"
+on "public"."page_section"
+as permissive
+for select
+to anon, authenticated
+using (true);
+
+
+