This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/data/migrations/versions/c91c564aad34_drop_checksum_on_imagestorage.py
2019-11-12 11:09:47 -05:00

25 lines
700 B
Python

"""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 as original_op
from data.migrations.progress import ProgressWrapper
import sqlalchemy as sa
def upgrade(tables, tester, progress_reporter):
op = ProgressWrapper(original_op, progress_reporter)
op.drop_column('imagestorage', 'checksum')
def downgrade(tables, tester, progress_reporter):
op = ProgressWrapper(original_op, progress_reporter)
op.add_column('imagestorage', sa.Column('checksum', sa.String(length=255), nullable=True))