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#backwards-06.

"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 at 
> http://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.

Reply via email to