3 ms·
> I've lived in the world of Rails and Django so long, I sort of take schema migrations for granted. And there's lots more room for improvement over Rails and
by djrobstep 8y ago
> I've lived in the world of Rails and Django so long, I sort of take schema migrations for granted.
And there's lots more room for improvement over Rails and Django migrations.
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
Autosyncing local dev databases, and automatically generating migration scripts with a diff tool is a better approach, imho.
- evanelias 8y agoTotally agree -- I wrote some similar thoughts elsewhere in the thread. It might just take some time for more developers to gain experience with the declarative/diff-based approach, to become comfortable with it.
- all_factz 8y agoDon't disagree with the rest of these points, but I do want to point out that Django lets you squash long "chain" migration files just as you'd do with commits.