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 --

-- should be --

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 --

-- should be --
