Comment 1 for bug 1186353

Revision history for this message
Brant Knudson (blk-u) wrote :

I fixed a similar problem for DB2.

I looked up the constraint name... it was in the table structure.

Sqlalchemy did know the name of the constraint, but it just didn't use that name when dropping.

Here's the interesting bit: [fk.name for fk in table.constraints if column.name in fk.columns]