def db_upgrade(version=None):
    """Upgrade the database"""
    v1 = get_db_version()
    migrate_api.upgrade(url=db_url, repository=db_repo, version=version)
    v2 = get_db_version()

    if v1 == v2:
        print 'Database already up-to-date.'
    else:
        print 'Upgraded: %s ... %s' % (v1, v2)
def db_upgrade ( version = None ) : v1 = get_db_version ( ) migrate_api . upgrade ( url = db_url , repository = db_repo , version = version ) v2 = get_db_version ( ) if v1 == v2 : print 'Database already up-to-date.' else : print 'Upgraded: %s ... %s' % ( v1 , v2 )
Upgrade the database