Merge pull request #3015 from bison/blobupload-byte-count

Make byte_count on BlobUpload table not nullable
This commit is contained in:
Brad Ison 2018-02-26 12:33:40 -05:00 committed by GitHub
commit cb729d0dfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,24 @@
"""Make BlodUpload byte_count not nullable
Revision ID: 152edccba18c
Revises: c91c564aad34
Create Date: 2018-02-23 12:41:25.571835
"""
# revision identifiers, used by Alembic.
revision = '152edccba18c'
down_revision = 'c91c564aad34'
from alembic import op
import sqlalchemy as sa
def upgrade(tables):
op.alter_column('blobupload', 'byte_count', existing_type=sa.BigInteger(),
nullable=False)
def downgrade(tables):
op.alter_column('blobupload', 'byte_count', existing_type=sa.BigInteger(),
nullable=True)

Binary file not shown.