pvanek/sqliteman — pull request #3 by vaussard (2013-10-24 13:09:42+00:00)
Title: Fix issue #153

Issue #153 [1] is annoying when altering tables, as the PRIMARY KEY and AUTOINCREMENT keywords are lost, which may in turn cause bugs when using the altered table. The first patch fixes this issue, by correctly updating field.type in Database::tableFields().

Users of this function were checked, and it appears that SqlTableModel::setTable() was wrongly detecting the AUTOINCREMENT nature of a primary key (used for the tooltip of the table view), so this side issue is fixed in the second patch by using results from the first patch.

Tested on Linux with a few toys databases, as well as with a "real" one.

Regards.

Florian

[1] http://bugtracker.sqliteman.com/view.php?id=153