mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
Support updating column is unique when editing table in side panel (#22121)
This commit is contained in:
1 parent
b47120cdc1
commit
180c052d4d
1 file changed
+8
-13
+8
-13
@@ -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
|
||||
|
||||
Reference in new issue
Block a user