Merge pull request #3009 from bison/drop-image-checksum

Drop checksum from ImageStorage table
This commit is contained in:
Brad Ison 2018-02-24 17:27:13 -05:00 committed by GitHub
commit f458307ffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,22 @@
"""Drop checksum on ImageStorage
Revision ID: c91c564aad34
Revises: 152bb29a1bb3
Create Date: 2018-02-21 12:17:52.405644
"""
# revision identifiers, used by Alembic.
revision = 'c91c564aad34'
down_revision = '152bb29a1bb3'
from alembic import op
import sqlalchemy as sa
def upgrade(tables):
op.drop_column('imagestorage', 'checksum')
def downgrade(tables):
op.add_column('imagestorage', sa.Column('checksum', sa.String(length=255), nullable=True))

Binary file not shown.