Skip to content

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

fix: update column type and add foreign key (#34121)

Alaister Youngd04560134ef1
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx
index f60a3cd2215..fc2eb6c60ce 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx
@@ -47,7 +47,7 @@ const ColumnForeignKey = ({
return {
id: c.id,
name: c.name,
- format: c.format || column.format,
+ format: column.format || c.format,
isNewColumn: false,
}
})