Drop the v1 checksum column from imagestorage

This commit is contained in:
Jake Moshenko 2015-11-06 16:49:16 -05:00
parent affd8dd797
commit d292a34343

View file

@ -0,0 +1,25 @@
"""Drop v1 checksums from imagestorage
Revision ID: b0e4a7dd82e
Revises: 22af01f81722
Create Date: 2015-11-06 16:45:31.517503
"""
# revision identifiers, used by Alembic.
revision = 'b0e4a7dd82e'
down_revision = '22af01f81722'
from alembic import op
import sqlalchemy as sa
def upgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.drop_column('imagestorage', 'checksum')
### end Alembic commands ###
def downgrade(tables):
### commands auto generated by Alembic - please adjust! ###
op.add_column('imagestorage', sa.Column('checksum', sa.String(length=255), nullable=True))
### end Alembic commands ###