Hmmm... thank you. That solved that. I however ran into problems resolving relationships. Went over everything to make sure its right though it keeps telling me that a certain relationship "resolves to several entities, you should use the full path (including the full module name) to that entity".
I give up... I guess I should just define the SA metadata in my migration scripts and keep Elixir only to my models? Is that how its usually done? On Aug 5, 6:28 am, chaouche yacine <[email protected]> wrote: > My guess is that this reciep was targeted for migrate 0.5, where > migrate_engine was defined and that it's not the case anymore in version 0.6. > > Aha ! I just found this > :http://packages.python.org/sqlalchemy-migrate/changelog.html#backward.... > > "python upgrade/downgrade scripts do not import migrate_engine magically, but > recieve engine as the only parameter to function (eg. def > upgrade(migrate_engine):)" > > Y.Chaouche > > --- On Thu, 8/5/10, waugust <[email protected]> wrote: > > > > > From: waugust <[email protected]> > > Subject: [elixir] SA-migrate + Elixir > > To: "SQLElixir" <[email protected]> > > Date: Thursday, August 5, 2010, 2:23 AM > > Greetings, > > > I've found a recipe on the Elixir site showing a use of > > Elixir in SA- > > migrate scripts. The problem I'm running into maybe > > better for the SA > > board, though I thought I would hit up here first (maybe > > other Elixir > > use in migration script insight). > > > File "sqlrepo/versions/001_Initial_Tables.py", line 5, in > > <module> > > __metadata__ = MetaData(migrate_engine) > > NameError: name 'migrate_engine' is not defined > > > SQLAlchemy-0.6.3 > > Elixir-0.7.1 > > sqlalchemy_migrate-0.6 > > > --Ubuntu 10.04 in a virtualenv > > > -- > > You received this message because you are subscribed to the > > Google Groups "SQLElixir" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/sqlelixir?hl=en. -- You received this message because you are subscribed to the Google Groups "SQLElixir" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlelixir?hl=en.
