def test_sync_and_version(self): migration.db_sync() v = migration.db_version() self.assertTrue(v > migration.INIT_VERSION)
def do_db_sync(): """Place a database under migration control and upgrade, creating first if necessary. """ db_migration.db_sync(CONF.command.version)