mirror of
https://github.com/ent/ent.git
synced 2026-05-01 07:00:57 +03:00
dialect/sql/schema: add support for pg arrays in migration
This commit is contained in:
committed by
Ariel Mashraki
parent
eff6552989
commit
fd1f2df150
@@ -328,3 +328,9 @@ func (d *SQLite) tables() sql.Querier {
|
||||
From(sql.Table("sqlite_schema")).
|
||||
Where(sql.EQ("type", "table"))
|
||||
}
|
||||
|
||||
// needsConversion reports if column "old" needs to be converted
|
||||
// (by table altering) to column "new".
|
||||
func (d *SQLite) needsConversion(old, new *Column) bool {
|
||||
return d.cType(old) != d.cType(new)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user