提升数据库升级速度

This commit is contained in:
GoEdgeLab
2022-11-02 16:58:09 +08:00
parent f7e19e923c
commit f4723ed3a4
4 changed files with 90 additions and 32 deletions

View File

@@ -21,7 +21,7 @@ func TestSQLDump_Dump(t *testing.T) {
}()
dump := NewSQLDump()
result, err := dump.Dump(db)
result, err := dump.Dump(db, true)
if err != nil {
t.Fatal(err)
}
@@ -64,7 +64,7 @@ func TestSQLDump_Apply(t *testing.T) {
}()
var dump = NewSQLDump()
result, err := dump.Dump(db)
result, err := dump.Dump(db, true)
if err != nil {
t.Fatal(err)
}