lab5: асинхронный воркер, брокер сообщений

This commit is contained in:
2026-11-20 18:44:04 +03:00
parent 276dbdad8a
commit 35753ff11d
88 changed files with 5726 additions and 53 deletions
@@ -0,0 +1,23 @@
from alembic import op
import sqlalchemy as sa
revision = "2a1b3c4d5e6f"
down_revision = "1c0bb32fbe88"
branch_labels = None
depends_on = None
def upgrade():
op.add_column("attachments", sa.Column("thumbnail_key", sa.String(), nullable=True))
op.add_column("attachments", sa.Column("thumbnail_sha256", sa.String(), nullable=True))
op.add_column("attachments", sa.Column("thumbnail_size_bytes", sa.Integer(), nullable=True))
op.add_column("attachments", sa.Column("thumbnail_width", sa.Integer(), nullable=True))
op.add_column("attachments", sa.Column("thumbnail_height", sa.Integer(), nullable=True))
def downgrade():
op.drop_column("attachments", "thumbnail_height")
op.drop_column("attachments", "thumbnail_width")
op.drop_column("attachments", "thumbnail_size_bytes")
op.drop_column("attachments", "thumbnail_sha256")
op.drop_column("attachments", "thumbnail_key")