Add server default for the chunk_count column

This commit is contained in:
Joseph Schorr 2015-12-15 15:44:33 -05:00
parent 06b7b1561d
commit 73531d08b5

View file

@ -16,7 +16,7 @@ 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(), nullable=False))
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 ###