Update xorm and dependencies vendor for feature to dump to other database (#565)

* update xorm and dependencies vendor for feature to dump to other database

* fix golint
This commit is contained in:
Lunny Xiao authored and GitHub committed 2017-01-03 16:20:28 +08:00
1 parent 70900bd167
commit 980dd0bf51
54 files changed
+3135 -2619

No files matched your search

+5
View File
@@ -783,6 +783,11 @@ func (db *postgres) SqlType(c *core.Column) string {
return core.Serial
}
return core.Integer
case core.BigInt:
if c.IsAutoIncrement {
return core.BigSerial
}
return core.BigInt
case core.Serial, core.BigSerial:
c.IsAutoIncrement = true
c.Nullable = false