equal
deleted
inserted
replaced
694 config = ServerConfiguration.config_for(appid) |
694 config = ServerConfiguration.config_for(appid) |
695 config.verbosity = 1 # else we won't be asked for confirmation on problems |
695 config.verbosity = 1 # else we won't be asked for confirmation on problems |
696 config.quick_start = True |
696 config.quick_start = True |
697 mih = config.migration_handler(connect=False, verbosity=1) |
697 mih = config.migration_handler(connect=False, verbosity=1) |
698 mih.restore_database(backupfile, drop, askconfirm=False, format=format) |
698 mih.restore_database(backupfile, drop, askconfirm=False, format=format) |
699 repo = mih.repo_connect() |
699 repo = mih.repo |
700 # version of the database |
700 # version of the database |
701 dbversions = repo.get_versions() |
701 dbversions = repo.get_versions() |
702 mih.shutdown() |
702 mih.shutdown() |
703 if not dbversions: |
703 if not dbversions: |
704 print "bad or missing version information in the database, don't upgrade file system" |
704 print "bad or missing version information in the database, don't upgrade file system" |