"""Add new blobupload columns
Revision ID: 403d02fea323
Revises: 10b999e8db1f
Create Date: 2015-11-30 14:25:46.822730
"""
# revision identifiers, used by Alembic.
revision = '403d02fea323'
down_revision = '10b999e8db1f'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.add_column('blobupload', sa.Column('chunk_count', sa.Integer(), server_default="0", nullable=False))
op.add_column('blobupload', sa.Column('uncompressed_byte_count', sa.Integer(), nullable=True))
### end Alembic commands ###
def downgrade(tables):
op.drop_column('blobupload', 'uncompressed_byte_count')
op.drop_column('blobupload', 'chunk_count')