This commit is contained in:
k00kzaAntonovaIra
2026-11-16 14:16:01 +03:00
parent 276dbdad8a
commit 8bedaa7592
177 changed files with 17065 additions and 430 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()