Skip to content

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

Update the wording.

Ivan Vasilovb896200e56e4
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
index e114f7ebd10..63a55075ca2 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
@@ -318,26 +318,24 @@ const ForeignKeySelector = ({
{!matchingColumnTypes && !column?.format && (
<Alert_Shadcn_ variant="default">
<IconAlertCircle className="h-4 w-4" />
- <AlertTitle_Shadcn_>The referenced column has no type</AlertTitle_Shadcn_>
+ <AlertTitle_Shadcn_>
+ The reference column's type will be updated to {selectedColumn?.data_type}
+ </AlertTitle_Shadcn_>
<AlertDescription_Shadcn_ className="leading-6">
<span>The referenced column</span>
{column?.name && <span className="text-code">{column.name}</span>}
- <span> has no type</span>
- <span> while the selected foreign column </span>
- <span className="text-code">
- {selectedTable?.name}.{selectedColumn?.name}
+ <span>
+ {' '}
+ must match the type of the selected foreign column when creating a foreign key
+ relationship.
</span>
- <span> has </span>
- <span className="text-code">{selectedColumn?.data_type}</span>type. They must be
- of the same type, therefore the referenced column type will be set to{' '}
- <span className="text-code">{selectedColumn?.data_type}</span>type.
</AlertDescription_Shadcn_>
</Alert_Shadcn_>
)}
{!matchingColumnTypes && column?.format && (
<Alert_Shadcn_ variant="warning">
<IconAlertTriangle strokeWidth={2} />
- <AlertTitle_Shadcn_>The column types don't match</AlertTitle_Shadcn_>
+ <AlertTitle_Shadcn_>Column types do not match</AlertTitle_Shadcn_>
<AlertDescription_Shadcn_ className="leading-6">
<span>The referenced column</span>
{column?.name && <span className="text-code">{column.name}</span>}