Skip to content

Table create statements/ui should show primary key properly #1064

@Syntex9000

Description

@Syntex9000

If you create a table with a primary key and use the data type integer then Sqlite will auto increment that field for you. However, when the table is recreated by right clicking on the table name and selecting "script as create" or "drop and create", it comes up as a bigint not null and primary key is a constraint at the end of the query. If you resave this, it will no longer auto-increment that field because the data type is now bigint. This is also apparent when you expand a table in the UI, and it shows the primary key as bigint. This is incorrect

-- what shows --
Image

-- should be --
Image

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