Re: [sqlalchemy] Convert Declarative definitions to Table definitions

2010-12-06 Thread Chris Withers
On 03/12/2010 19:02, Thadeus Burgess wrote: I'm about to use sqlalchemy-migrate, however all of my tables are already in a declarative format. If you're using migrate, you're better off reflecting the tables to be migrated rather than using any script to try and turn declarative models into

Re: [sqlalchemy] Convert Declarative definitions to Table definitions

2010-12-06 Thread Thadeus Burgess
I use ENUM types for postgres. Reflection does not preserve the ENUM name within its sequence. Name is required on postgres. I don't want to edit my 50+ tables and add names to them just for a migration, this is why reflection does not work in my case. -- Thadeus On Mon, Dec 6, 2010 at 4:29

[sqlalchemy] Convert Declarative definitions to Table definitions

2010-12-03 Thread Thadeus Burgess
I'm about to use sqlalchemy-migrate, however all of my tables are already in a declarative format. Is there a script out there that will convert a declarative model syntax to table model? I'm looking to just paste my model in declarative and it spit out a tablename = Table(...) format for me to