Skip to content

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

added on delete cascade

Ollie Halliday32a3ec5f7e85
diff --git a/studio/components/interfaces/SQLEditor/SQLEditor.constants.ts b/studio/components/interfaces/SQLEditor/SQLEditor.constants.ts
index 63ec9612ed2..de1990ca96b 100644
--- a/studio/components/interfaces/SQLEditor/SQLEditor.constants.ts
+++ b/studio/components/interfaces/SQLEditor/SQLEditor.constants.ts
@@ -812,7 +812,7 @@ create publication supabase_realtime
sql: `
-- Create a table for public profiles
create table profiles (
- id uuid references auth.users not null primary key,
+ id uuid references auth.users on delete cascade not null primary key,
updated_at timestamp with time zone,
username text unique,
full_name text,