Merge pull request #3015 from bison/blobupload-byte-count
Make byte_count on BlobUpload table not nullable
This commit is contained in:
commit
cb729d0dfd
2 changed files with 24 additions and 0 deletions
|
@ -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.
Reference in a new issue