Skip to content

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

fix: formatting issue causing prettier to insert empty code block in file (#21266)

Charis1076b1d0adb8
diff --git a/apps/docs/content/guides/auth/column-level-security.mdx b/apps/docs/content/guides/auth/column-level-security.mdx
index 2bad6a22e07..ac2155ca023 100644
--- a/apps/docs/content/guides/auth/column-level-security.mdx
+++ b/apps/docs/content/guides/auth/column-level-security.mdx
@@ -116,30 +116,28 @@ supabase migration new create_posts_table
<StepHikeCompact.Code>
```sql
-
-create table
-posts (
-id bigint primary key generated always as identity,
-user_id text,
-title text,
-content text,
-created_at timestamptz default now()
-updated_at timestamptz default now()
-);
-
--- Add row-level security
-create a policy "Allow update for owners" on posts for
-update
-using (auth.uid () = user_id);
-
--- Add column-level security
-revoke
-update
-(title) on table public.posts
-from
-authenticated;
-
-```
+ create table
+ posts (
+ id bigint primary key generated always as identity,
+ user_id text,
+ title text,
+ content text,
+ created_at timestamptz default now()
+ updated_at timestamptz default now()
+ );
+
+ -- Add row-level security
+ create a policy "Allow update for owners" on posts for
+ update
+ using (auth.uid () = user_id);
+
+ -- Add column-level security
+ revoke
+ update
+ (title) on table public.posts
+ from
+ authenticated;
+ ```
</StepHikeCompact.Code>
@@ -147,6 +145,6 @@ authenticated;
</StepHikeCompact>
## Considerations when using column-level privileges
+
- If you turn off a column privilege you won't be able to use that column at all.
- All operations (insert, update, delete) as well as using `select *` will fail.
-```