|
|
|
|
|
by yangyang
3008 days ago
|
|
This looks interesting. If you're using SQLAlchemy, Alembic is a good migration management / generation / application tool: http://alembic.zzzcomputing.com/en/latest/, and works with most (all?) the databases supported by SQLAlchemy. It doesn't handle every kind of database object / attribute thereof, but it's reasonably easily extensible. |
|
Some of the problems:
- Annoying version number management
- Management of long "chain" of migration files
- Unnecessary coupling between ORM and migration tool
- Heavyweight process to generate and run each migration, which slows down local development
- Bad testability
I talked in more depth about this topic at last year's PostgresOpen, if you're interested: https://www.youtube.com/watch?v=xr498W8oMRo