Add server default for the chunk_count column
This commit is contained in:
parent
06b7b1561d
commit
73531d08b5
1 changed files with 1 additions and 1 deletions
|
@ -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 ###
|
||||
|
||||
|
|
Reference in a new issue