* gitea dump: include version * Check InstallLock
This commit is contained in:
parent
dc71d00393
commit
7a25441abe
3 changed files with 21 additions and 0 deletions
|
@ -21,6 +21,12 @@ func TestDumpDatabase(t *testing.T) {
|
|||
dir, err := ioutil.TempDir(os.TempDir(), "dump")
|
||||
assert.NoError(t, err)
|
||||
|
||||
type Version struct {
|
||||
ID int64 `xorm:"pk autoincr"`
|
||||
Version int64
|
||||
}
|
||||
assert.NoError(t, x.Sync2(Version{}))
|
||||
|
||||
for _, dbName := range setting.SupportedDatabases {
|
||||
dbType := setting.GetDBTypeByName(dbName)
|
||||
assert.NoError(t, DumpDatabase(filepath.Join(dir, dbType+".sql"), dbType))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue