不要怂,就是干,撸起袖子干!

Commit bcbd2400 by Mick Hansen

Merge pull request #1991 from db6edr/fix-sqlite-describetable-does-not-return-primarykey

SQLite: tables loose PrimaryKey constraint on renameColumn
2 parents 86482746 b672ddc3
Showing with 2 additions and 1 deletions
......@@ -154,7 +154,8 @@ module.exports = (function() {
result[_result.name] = {
type: _result.type,
allowNull: (_result.notnull === 0),
defaultValue: _result.dflt_value
defaultValue: _result.dflt_value,
primaryKey: (_result.pk === 1)
}
if (result[_result.name].type === 'TINYINT(1)') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!