def db_sync(version=None, init_version=0, engine=None):
 if (engine is None):
  engine = db_api.get_engine()
 return get_backend().db_sync(engine=engine, abs_path=MIGRATE_REPO_PATH, version=version, init_version=init_version)

def db_sync ( version = None , init_version = 0 , engine = None ) : if ( engine is None ) : engine = db_api . get_engine ( ) return get_backend ( ) . db_sync ( engine = engine , abs_path = MIGRATE_REPO_PATH , version = version , init_version = init_version )
migrate the database to version or the most recent version .