def METHOD_NAME() -> None:
    """Downgrade database bind ''."""
    for table_name, column_name, check_name, values in reversed(
        table_column_check_values
    ):
        print(f"Downgrading {table_name}.{column_name}")  # noqa: T201
        tstruct = table(table_name, column(column_name))
        if not check_name:
            mcheck = table_name + '_' + column_name + '_check'
        else:
            mcheck = check_name
        op.drop_constraint(mcheck, table_name, type_='check')
        for value in sorted(values):
            op.execute(
                tstruct.update()
                .where(getattr(tstruct.c, column_name) == value)
                .values(**{column_name: value - 1})
            )
        if check_name:
            op.create_check_constraint(
                check_name, table_name, column(column_name).in_([v - 1 for v in values])
            )