This commit is contained in:
k00kzaAntonovaIra
2026-11-22 19:55:50 +03:00
parent 470d9d6f1e
commit 2d10a9b788
186 changed files with 15732 additions and 425 deletions
@@ -0,0 +1,23 @@
"""Offline cutover: повторно опубликовать queued jobs в RabbitMQ."""
from alembic import op
revision = "a62c950e18b3"
down_revision = "f9183d27a640"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.execute(
"""
UPDATE attachment_jobs j SET published_attempt = attempt
FROM attachments a WHERE a.id = j.attachment_id AND a.status = 'queued'
"""
)
def downgrade() -> None:
upgrade()