diff --git a/postgres_dialect.go b/postgres_dialect.go index 2edc07cc..ad7a76f8 100644 --- a/postgres_dialect.go +++ b/postgres_dialect.go @@ -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