# SPDX-FileCopyrightText: 2026 Dennis Fink # # SPDX-License-Identifier: BSD-3-Clause """Cap stale received Webmention verification recovery per row. Revision ID: e62b1a7c4d90 Revises: d845aa7fbc19 """ import sqlalchemy as sa from alembic import op revision = "e62b1a7c4d90" down_revision = "d845aa7fbc19" branch_labels = None depends_on = None def upgrade(): with op.batch_alter_table("received_webmentions") as batch_op: batch_op.add_column( sa.Column( "recovery_attempts", sa.Integer(), nullable=False, server_default="0" ) ) def downgrade(): with op.batch_alter_table("received_webmentions") as batch_op: batch_op.drop_column("recovery_attempts")