We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa90700 commit 8d61a20Copy full SHA for 8d61a20
models/db/engine_dump.go
@@ -26,7 +26,7 @@ func DumpDatabase(filePath, dbType string) error {
26
}
27
tbs = append(tbs, t)
28
29
- if len(dbType) > 0 {
+ if dbType != "" {
30
return xormEngine.DumpTablesToFile(tbs, filePath, schemas.DBType(dbType))
31
32
return xormEngine.DumpTablesToFile(tbs, filePath)
0 commit comments