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