The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Merge pull request #17454 from supabase/chore/support-cascade-update-foreign-key
Joshen Lim230cb3358614
diff --cc studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsxindex 7c4fd0ad1f8,9cbc393762f..df17d3f14e7--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx@@@ -108,12 -119,14 +119,14 @@@ const ForeignKeySelector = (schema: '',table: '',column: '',- deletionAction: FOREIGN_KEY_DELETION_ACTION.NO_ACTION,+ deletionAction: FOREIGN_KEY_CASCADE_ACTION.NO_ACTION,+ updateAction: FOREIGN_KEY_CASCADE_ACTION.NO_ACTION,})}+const table = find(tables, { id: tableId })if (table) {- const primaryColumn = table.primary_keys[0].name+ const primaryColumn = table.primary_keys[0]?.nameconst firstColumn = table.columns?.length ? table.columns[0].name : undefinedsetSelectedForeignKey({