The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs(postgres): rename 'cascade deletes' to 'on delete constraint behavior'
Greg Richardson06e936517b82
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex 2abd878db71..29d62973ed5 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -472,8 +472,8 @@ export const database = {url: '/guides/database/postgres/indexes',},{- name: 'Cascade Deletes',- url: '/guides/database/postgres/cascade-deletes',+ name: 'On Delete Constraint Behavior',+ url: '/guides/database/postgres/on-delete-constraint-behavior',},{name: 'Drop All Tables in Schema',diff --git a/apps/docs/pages/guides/database/postgres/cascade-deletes.mdx b/apps/docs/pages/guides/database/postgres/on-delete-constraint-behavior.mdxsimilarity index 97%rename from apps/docs/pages/guides/database/postgres/cascade-deletes.mdxrename to apps/docs/pages/guides/database/postgres/on-delete-constraint-behavior.mdxindex 7f9ebe22ba8..fefb563ad8b 100644--- a/apps/docs/pages/guides/database/postgres/cascade-deletes.mdx+++ b/apps/docs/pages/guides/database/postgres/on-delete-constraint-behavior.mdx@@ -1,12 +1,12 @@import Layout from '~/layouts/DefaultGuideLayout'export const meta = {- title: 'Cascade deletes',- description: 'Understand the types of foreign key deletes',+ title: 'On Delete Constraint Behaviour',+ description: 'Understand the types of foreign key constraint deletes',footerHelpType: 'postgres',}-There are 5 options for cascade deletes:+There are 5 options for foreign key constraint deletes:1. **CASCADE:** When a row is deleted from the parent table, all related rows in the child table(s) are deleted as well.2. **RESTRICT:** When a row is deleted from the parent table, the delete operation is aborted if there are any related rows in the child table(s).diff --git a/apps/docs/pages/guides/resources.mdx b/apps/docs/pages/guides/resources.mdxindex 85fc25d8764..3e297988711 100644--- a/apps/docs/pages/guides/resources.mdx+++ b/apps/docs/pages/guides/resources.mdx@@ -159,8 +159,8 @@ export const postgres = [{title: 'Cascade Deletes',hasLightIcon: true,- href: '/guides/database/postgres/cascade-deletes',- description: 'Understand the types of foreign key deletes.',+ href: '/guides/database/postgres/on-delete-constraint-behavior',+ description: 'Understand the types of foreign key constraint deletes.',},{title: 'Drop all tables in schema',diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsxindex d40c56df3ee..372722265df 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx@@ -327,12 +327,12 @@ const ForeignKeySelector: FC<Props> = ({ column, visible = false, closePanel, sa</p><p className="mt-2"><a- href="https://supabase.com/docs/guides/database/postgres/cascade-deletes"+ href="https://supabase.com/docs/guides/database/postgres/on-delete-constraint-behavior"target="_blank"rel="noreferrer"className="text-brand-900 opacity-75">- Learn more about cascade deletes+ Learn more about ON DELETE</a></p></>