ЛР 7: безопасность, mTLS и OpenBao на оценку 3
Skeleton contracts / contracts (pull_request) Blocked by required conditions

This commit is contained in:
2026-12-06 15:19:24 +03:00
parent 20afc2c790
commit 280c5a3300
101 changed files with 5950 additions and 63 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")