resolved #503
This commit is contained in:
parent
dc3618b2f7
commit
b19177f4dc
|
@ -783,6 +783,11 @@ func (db *postgres) SqlType(c *core.Column) string {
|
||||||
return core.Serial
|
return core.Serial
|
||||||
}
|
}
|
||||||
return core.Integer
|
return core.Integer
|
||||||
|
case core.BigInt:
|
||||||
|
if c.IsAutoIncrement {
|
||||||
|
return core.BigSerial
|
||||||
|
}
|
||||||
|
return core.BigInt
|
||||||
case core.Serial, core.BigSerial:
|
case core.Serial, core.BigSerial:
|
||||||
c.IsAutoIncrement = true
|
c.IsAutoIncrement = true
|
||||||
c.Nullable = false
|
c.Nullable = false
|
||||||
|
|
Loading…
Reference in New Issue