mirror of
https://github.com/supabase/supabase.git
synced 2026-07-06 06:54:21 +08:00
Support updating column is unique when editing table in side panel (#22121)
This commit is contained in:
@@ -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