Skip to content

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

Add data types link to table creation panel

Terry Suttonf60cfd66ee2a
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
index d7ddcefcc1b..e869a3cf84b 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
@@ -136,14 +136,6 @@ const ColumnType: FC<Props> = ({
</Listbox.Option>
))}
</Listbox>
- <div className="text-sm grid md:grid-cols-12 md:gap-x-4 ">
- <p className='text-scale-1100 col-span-7 col-start-5 -mt-4'>
- <a href="https://supabase.com/pricing" target="_blank" className="underline flex items-center gap-1">
- Learn more about data types <IconArrowUpRight size={14} className="text-scale-1200" strokeWidth={1.5} />
- </a>
-
- </p>
- </div>
</>
)
}
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
index 39d7b04071a..fcd74af88a5 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
@@ -3,6 +3,7 @@ import { partition, isEmpty, isUndefined } from 'lodash'
import {
Alert,
Button,
+ IconArrowUpRight,
IconEdit,
IconHelpCircle,
IconKey,
@@ -318,11 +319,21 @@ const ColumnManagement: FC<Props> = ({
</DragDropContext>
</div>
+ <div className="flex items-center justify-between">
{!hasImportContent && (
<Button type="default" onClick={() => onAddColumn()}>
Add column
</Button>
)}
+ <p className='text-sm text-scale-1100'>
+ <a href="https://supabase.com/pricing" target="_blank" className="underline flex items-center gap-1">
+ Learn more about data types <IconArrowUpRight size={14} className="text-scale-1200" strokeWidth={1.5} />
+ </a>
+ </p>
+ </div>
+
+
+
</div>
<ForeignKeySelector
tables={tables}