Skip to content

add row: give option to specify pkey if it's a text field without a default #104

@cldellow

Description

@cldellow

If you have a table like:

CREATE TABLE foo(id INTEGER PRIMARY KEY, name TEXT);

or

CREATE TABLE foo(id TEXT PRIMARY KEY DEFAULT ulid(), name TEXT);

we should not let you enter the primary key when adding a new row.

But if you have a table like:

CREATE TABLE foo(id TEXT NOT NULL PRIMARY KEY, name TEXT)

we should.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions