sequelize/sequelize — pull request #1991 by db6edr (2014-07-01 16:46:20+00:00)
Title: SQLite: tables loose PrimaryKey constraint on renameColumn

When using renameColumn with SQLite, the table is recreated with the changed column name. For recreating, the result of describeTable() is used.
As describeTable() doesn't return information on the primary key column(s), the recreated table does not have a primary.

Fixed by adding primaryKey to result of describeTable()