f6ff0d6ca0
This change ensures that the tables in the database during migration have at least one row of "real" data, which should help catch issues in the future where we forget to set column defaults and other such schema oversights that can only be truly tested with non-empty tables Fixes https://jira.coreos.com/browse/QUAY-913
22 lines
480 B
Python
22 lines
480 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
|
|
import sqlalchemy as sa
|
|
|
|
|
|
def upgrade(tables, tester):
|
|
op.drop_column('imagestorage', 'checksum')
|
|
|
|
|
|
def downgrade(tables, tester):
|
|
op.add_column('imagestorage', sa.Column('checksum', sa.String(length=255), nullable=True))
|