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 226aef7 commit 230f328Copy full SHA for 230f328
models/models.go
@@ -302,6 +302,17 @@ func DumpDatabase(filePath string, dbType string) error {
302
}
303
tbs = append(tbs, t)
304
305
+
306
+ type Version struct {
307
+ ID int64 `xorm:"pk autoincr"`
308
+ Version int64
309
+ }
310
+ t, err := x.TableInfo(Version{})
311
+ if err != nil {
312
+ return err
313
314
+ tbs = append(tbs, t)
315
316
if len(dbType) > 0 {
317
return x.DumpTablesToFile(tbs, filePath, schemas.DBType(dbType))
318
0 commit comments