Skip to content

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

changed tooltip and hint

Ollie Halliday56fbecf8cc87
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnDefaultValue.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnDefaultValue.tsx
index 5e58fa116b3..ce30204e13c 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnDefaultValue.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnDefaultValue.tsx
@@ -52,7 +52,7 @@ const ColumnDefaultValue: FC<Props> = ({
<InputWithSuggestions
label="Default Value"
layout="vertical"
- description="Can either be a literal or an expression (e.g uuid_generate_v4())"
+ description="Can either be a literal or an expression. When using an expression wrap your expression in brackets e.g (e.g uuid_generate_v4())"
placeholder={
typeof columnFields.defaultValue === 'string' && columnFields.defaultValue.length === 0
? 'EMPTY'
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
index cf9b0c06f10..076ea8a025f 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
@@ -239,7 +239,8 @@ const ColumnManagement: FC<Props> = ({
].join(' ')}
>
<span className="text-xs text-scale-1200">
- Can be either a value or a SQL expression
+ Can either be a literal or an expression. When using an expression wrap your
+ expression in brackets e.g (e.g uuid_generate_v4())
</span>
</div>
</Tooltip.Content>