views:

295

answers:

2

Does anyone know how Pylons and TG2 projects handle database migrations? I'm looking for something similar to Rails' Migrations and Django's South.

+2  A: 

As far as I know. Pylons doesn't have it's own integrated ORM, you have to integrate that yourself or just code your own DB layer. So, al least for Pylons, you either have to build your own script, getting all the content from one DB and putting it inside the new one; or you have to look in the ORM of your choise for tools available.

Santi
+5  A: 

As Santi said, it doesn't have its own, but some of the ones available for SQLAlchemy should work:

sqlalchemy-migrate which is also used by tesla-pylons-elixir as a way to get better integration with Pylons.

miruku

Van Gale
just to clarify sqlachemy-migrate is the tool to use. Although SA0.6 may make it obsolete. Remember do not repeat yourself.
Jorge Vargas
It's worth noting that sqlalchemy-migrate doesn't yet work with PostgreSQL IF you use a schema other than public.
Ben