I'm using "vanilla" Pyramid 1.4 under Gentoo and I want to make changes to my tables and commit them without having to delete the table (and all of it's data) and then recreate it. I've heard the solution to this is schema migrations.
Being a long-time Django user, I've been using django-south
, but now I'm using Pyramid I can't find any way to handle migrations. I've read about sqlalchemy-migrate
, which looks really good but I'm unsure how to get it to work with Pyramid.
Are there any ways to handle schema migrations in Pyramid 1.4?
And if using sqlalchemy-migrate
is the sensible option, how do I get it working with Pyramid?
Cheers.
While that doesn't directly answer your question: Did you consider Alembic instead, a new SQLAlchemy migration tool by Mike Bayer himself (SQLAlchemy's author)? Development on sqlalchemy-migrate seems to have stopped in January whereas Alembic is quite active.