lab5: асинхронный воркер, брокер сообщений
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user