Standard for anything existing before the Alembic move-over, but I
forgot this one.
* mediagoblin/plugins/archivalook/migrations/b10b5f822789_archivalook_plugin_initial_migration.py
(upgrade): Add has_table check, skip if such a table already exists.
def upgrade():
+ if op.get_bind().engine.has_table('archivalook__featured_media'):
+ # Skip; this has already been instantiated
+ # (probably via sqlalchemy-migrate)
+ return
+
op.create_table(
'archivalook__featured_media',
sa.Column('id', sa.Integer(), nullable=False),