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

Commit a03312b7 by Mick Hansen

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

SQLite: tables loose PrimaryKey constraint on renameColumn
2 parents 4e0ccc22 42f6efea
Showing with 2 additions and 1 deletions
......@@ -113,7 +113,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!