

@args_from_config
def upgrade(model_persister, from_version=None, to_version=None):
    kwargs = {
        'from_version': from_version,
    }
    if (to_version is not None):
        kwargs['to_version'] = to_version
    model_persister.upgrade(**kwargs)

dataset/ETHPy150Open ottogroup/palladium/palladium/util.py upgrade/original