mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
doc/md: document usage of atlas supported migration tools (#2467)
* doc/md: document usage of atlas supported migration tools * dialect/sql/schema: fix tests
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
|
||||
"ariga.io/atlas/sql/migrate"
|
||||
"ariga.io/atlas/sql/schema"
|
||||
"ariga.io/atlas/sql/sqltool"
|
||||
|
||||
"entgo.io/ent/dialect"
|
||||
entsql "entgo.io/ent/dialect/sql"
|
||||
@@ -315,7 +316,7 @@ func (m *Migrate) setupAtlas() error {
|
||||
m.atlas.diff = append(m.atlas.diff, withoutForeignKeys)
|
||||
}
|
||||
if m.atlas.dir != nil && m.atlas.fmt == nil {
|
||||
m.atlas.fmt = migrate.DefaultFormatter
|
||||
m.atlas.fmt = sqltool.GolangMigrateFormatter
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user