update_db_from_model

2 views
Skip to first unread message

Paul Johnston

unread,
Nov 17, 2009, 9:08:42 AM11/17/09
to migrate-users
Hi,

In genmodel.py, line 198 is:
modelTable = modelTable.tometadata(meta)

I've found that removing this line fixes several instances of this
command raising an unexpected exception.

Any ideas why this line was there?

Paul

Christian Simms

unread,
Nov 19, 2009, 10:13:32 PM11/19/09
to migrat...@googlegroups.com

I wrote that line a year and a half ago.  I was getting a low-level sqlalchemy exception that I didn't understand, but putting that call in did the trick.  In particular, removing that call made the tests pass but the command line fail (adding a new column).  If everything works now without it then great!

Cheers,
Christian

Reply all
Reply to author
Forward
0 new messages