这是indexloc提供的服务,不要输入任何密码
Skip to content

Input for default column value is unnecessarily disabled for PK columns #4075

@beerose

Description

@beerose

When modifying the table's columns default input field is disabled for columns that are the primary keys. At the same time, it's possible to work around this (by enabling the input) and provide a default value.

How to reproduce?

I created a new table with a UUID field, which is also a primary key.
Screenshot 2020-03-10 at 13 25 18

Then I wanted to modify default value for this field, but it is disabled in the UI:
Screenshot 2020-03-10 at 13 25 45

So I removed disabled from this element:
Screenshot 2020-03-10 at 13 27 08

I provided gen_random_uuid(), and successfully saved changes:
Screenshot 2020-03-10 at 13 27 21

Metadata

Metadata

Assignees

Labels

c/consoleRelated to consolee/quickfixcan be wrapped up in few hoursgood first issueGood for newcomersp/mediumnon-urgent issues/features that are candidates for being included in one of the upcoming sprints

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions