# SPDX-FileCopyrightText: 2026 Dennis Fink # # SPDX-License-Identifier: BSD-3-Clause """Add Webmention retry backoff. Revision ID: 85f2b226ec99 Revises: 408fc2eca9ce Create Date: 2026-10-30 13:08:17.340631 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "85f2b226ec99" down_revision = "408fc2eca9ce" branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table("sent_webmentions", schema=None) as batch_op: batch_op.add_column( sa.Column("attempt_count", sa.Integer(), nullable=False, server_default="0") ) batch_op.add_column( sa.Column("next_retry_at", sa.DateTime(timezone=True), nullable=True) ) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table("sent_webmentions", schema=None) as batch_op: batch_op.drop_column("next_retry_at") batch_op.drop_column("attempt_count") # ### end Alembic commands ###