Diff work incorrect with the same field names in different models

Bug #1611314 reported by ХулиGUN
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sqlalchemy-migrate
New
Undecided
Unassigned

Bug Description

If two different models have same field names eg
class ModelOne(Base):
    __tablename__ = 'model_one'

    fieldname = Column(Integer)

class ModelOne(Base):
    __tablename__ = 'model_two'

    fieldname = Column(String)

With use api.make_update_script_for_model we have ValueError

line 220, in genB2AMigration
    for modelCol, databaseCol in td.columns_different:
ValueError: too many values to unpack

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.