This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/data/migrations/versions/403d02fea323_add_new_blobupload_columns.py

29 lines
865 B
Python
Raw Normal View History

"""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):
### commands auto generated by Alembic - please adjust! ###
op.drop_column('blobupload', 'uncompressed_byte_count')
op.drop_column('blobupload', 'chunk_count')
### end Alembic commands ###