def METHOD_NAME(revision):
    """Upgrades target database to a given revision
    Say we have revision ae1027a6acf
    Absolute migration:
        sc-pg upgrade ae10
    Relative to current:
        sc-pg upgrade +2
        sc-pg downgrade -- -1
        sc-pg upgrade ae10+2
    """
    click.echo(f"Upgrading database to {revision} ...")
    config = get_alembic_config_from_cache()
    if config:
        alembic.command.METHOD_NAME(config, revision, sql=False, tag=None)
    else:
        raise ValueError("Missing config")