Make sure database version is set when recovering a database
svn: r10608
This commit is contained in:
parent
b1d1804006
commit
2c2abb6b7c
@ -847,6 +847,9 @@ class DbManager(CLIDbManager):
|
|||||||
fname = os.path.join(dirname, filename)
|
fname = os.path.join(dirname, filename)
|
||||||
os.unlink(fname)
|
os.unlink(fname)
|
||||||
|
|
||||||
|
newdb = gen.db.GrampsDBDir()
|
||||||
|
newdb.write_version(dirname)
|
||||||
|
|
||||||
dbclass = gen.db.GrampsDBDir
|
dbclass = gen.db.GrampsDBDir
|
||||||
dbase = dbclass()
|
dbase = dbclass()
|
||||||
dbase.set_save_path(dirname)
|
dbase.set_save_path(dirname)
|
||||||
|
Loading…
Reference in New Issue
Block a user