don't check versions on db-restore
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 27 Jul 2009 09:40:31 +0200
changeset 2507 45248d0ad8a0
parent 2506 965d5e1557ed
child 2508 b1958ebed570
child 2511 a4b50efb97f6
don't check versions on db-restore
server/serverctl.py
--- a/server/serverctl.py	Fri Jul 24 19:44:30 2009 +0200
+++ b/server/serverctl.py	Mon Jul 27 09:40:31 2009 +0200
@@ -505,6 +505,7 @@
 def _local_restore(appid, backupfile, drop, systemonly=True):
     config = ServerConfiguration.config_for(appid)
     config.verbosity = 1 # else we won't be asked for confirmation on problems
+    config.repairing = 1 # don't check versions
     # schema=1 to avoid unnecessary schema loading
     mih = config.migration_handler(connect=False, schema=1, verbosity=1)
     mih.restore_database(backupfile, drop, systemonly, askconfirm=False)