Skip to content

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

fix: add quotes around policy names in SQL preview (#39320)

Monica Khouryab3a96026a0b
diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/LockedQuerySection.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/LockedQuerySection.tsx
index 5f4e045b7d1..83c3ef7fcbd 100644
--- a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/LockedQuerySection.tsx
+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/LockedQuerySection.tsx
@@ -96,7 +96,7 @@ export const LockedRenameQuerySection = ({
</p>
</div>
<p className="font-mono tracking-tighter">
- <span className="text-[#569cd6]">alter</span> policy {oldName}
+ <span className="text-[#569cd6]">alter</span> policy "{oldName}"
</p>
</div>
<div className="flex items-center" style={{ fontSize: '14px' }}>