Merge pull request #1064 from coreos-inc/serverdefault

Add server default for the chunk_count column
This commit is contained in:
josephschorr 2015-12-15 15:49:25 -05:00
commit 4a84388f15

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 ###