def downgrade(): ''' downgrade method ''' if context.get_context().dialect.name not in ('sqlite'): drop_column('requests', 'transferred_at')