The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Support updating column is unique when editing table in side panel (#22121)
Joshen Lim180c052d4dca
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsxindex 141518e4fc6..024687586c3 100644--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx@@ -157,19 +157,14 @@ const Column = ({<Popover.Separator /></>)}-- {column.isNewColumn && (- <>- <Checkbox- label="Is Unique"- description="Enforce if values in the column should be unique across rows"- checked={column.isUnique}- className="p-4"- onChange={() => onUpdateColumn({ isUnique: !column.isUnique })}- />- <Popover.Separator />- </>- )}+ <Checkbox+ label="Is Unique"+ description="Enforce if values in the column should be unique across rows"+ checked={column.isUnique}+ className="p-4"+ onChange={() => onUpdateColumn({ isUnique: !column.isUnique })}+ />+ <Popover.Separator />{column.format.includes('int') && (<><Checkbox