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
23 lines
438 B
Python
23 lines
438 B
Python
"""Cleanup old robots
|
|
|
|
Revision ID: 5b7503aada1b
|
|
Revises: 224ce4c72c2f
|
|
Create Date: 2018-05-09 17:18:52.230504
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '5b7503aada1b'
|
|
down_revision = '224ce4c72c2f'
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
from util.migrate.cleanup_old_robots import cleanup_old_robots
|
|
|
|
def upgrade(tables, tester):
|
|
cleanup_old_robots()
|
|
|
|
def downgrade(tables, tester):
|
|
# Nothing to do.
|
|
pass
|