Merge pull request #1064 from coreos-inc/serverdefault
Add server default for the chunk_count column
This commit is contained in:
commit
4a84388f15
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ from sqlalchemy.dialects import mysql
|
||||||
|
|
||||||
def upgrade(tables):
|
def upgrade(tables):
|
||||||
### commands auto generated by Alembic - please adjust! ###
|
### 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))
|
op.add_column('blobupload', sa.Column('uncompressed_byte_count', sa.Integer(), nullable=True))
|
||||||
### end Alembic commands ###
|
### end Alembic commands ###
|
||||||
|
|
||||||
|
|
Reference in a new issue