Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
autogen erroneously gens constraints using column.key, but we don't render "key =" in Column #259
Migrated issue, originally created by Michael Bayer (@zzzeek)
alembic autogens incorrectly as:
that is, without "key='x'" in the columns, but the constraints refer to the .key names. We should not render "key='x'" though, because the ForeignKeyConstraint will generate in DDL as referring to 't1.id', which does not exist, because operations._ensure_table_for_fk has no idea that 't1' has a different name than 'id' that's stated directly in the constraint.
Michael Bayer (@zzzeek) wrote: