I have an alembic migration which renames a FK column on a table from 'customer_id' to 'customer_pk'.
I used to have more in the migration file but narrowed it down to this code causing all the rows to be deleted. def upgrade(): op.alter_column( 'daily_smart_meter_readings', column_name='customer_id', new_column_name='customer_pk', ) I'm using alembic==1.0.0 and Python 3.6.4. Is there something wrong with the above code or is this a bug in the library? Thanks -- You received this message because you are subscribed to the Google Groups "sqlalchemy-alembic" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy-alembic+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.