Skip to content

Commit 8d61a20

Browse files
wxiaoguangdelvh
andauthored
Update models/db/engine_dump.go
Co-authored-by: delvh <[email protected]>
1 parent aa90700 commit 8d61a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/db/engine_dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func DumpDatabase(filePath, dbType string) error {
2626
}
2727
tbs = append(tbs, t)
2828

29-
if len(dbType) > 0 {
29+
if dbType != "" {
3030
return xormEngine.DumpTablesToFile(tbs, filePath, schemas.DBType(dbType))
3131
}
3232
return xormEngine.DumpTablesToFile(tbs, filePath)

0 commit comments

Comments
 (0)