@@ -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