Doctrine Migrations vs yoyo-migrations
Doctrine Migrations
doctrine-project.orgyoyo-migrations
ollycope.comSide by side
| Figure | Doctrine Migrations | yoyo-migrations |
|---|---|---|
| Price from | Free | — |
| Free plan | Yes | — |
| Free trial | — | — |
| Open source | — | — |
| Linux | Yes | — |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 0 |
| Spec score · Database Migration Tools | 8.5 (#6) | 6.6 (#30) |
| Installation | The library can be installed with Composer or downloaded as a PHAR from GitHub releases. | The documentation instructs users to install yoyo-migrations from PyPI with pip. |
| License | The GitHub repository identifies the project as MIT licensed. | PyPI lists the license as Apache Software License (Apache). |
| Migration controls | Users can inspect migration status, run dry runs, execute migrations, and revert them from the console. | The command line can apply, roll back, reapply, list, mark, and unmark migrations. |
| Purpose | Doctrine Migrations adds database schema versioning and helps deploy schema changes. | Yoyo is a database schema migration tool whose migrations are SQL files or Python scripts. |
| Support | The documentation directs users to the Doctrine mailing list, Slack, GitHub bug reporting, and Stack Overflow for help. | The project documentation directs users to its issue tracker and mailing list for issues, questions, and suggestions. |
| Transactions | The documentation covers all-or-nothing transactions and using or not using transactions. | Each migration runs in a separate transaction with savepoints isolating its steps, where supported by the database. |
Plans
In their own words
Doctrine Migrations
Doctrine Migrations is a free, self-hosted PHP library for versioning database schemas and deploying changes in a reviewable, testable way. Built on Doctrine DBAL and ORM, it can generate migration code by comparing a database schema with ORM mapping information, with documentation covering diffing with or without the ORM. Console commands show migration status, perform dry runs, execute one or more migrations, and revert changes. Generated SQL can be written to a file with --write-sql instead of applied directly, while --no-interaction supports unattended execution. Transaction controls cover all-or-nothing behavior and running with or without transactions. Install it through Composer, which provides a doctrine-migrations console application, or download a PHAR from GitHub releases. Doctrine lists integrations for Symfony, Zend, Laravel, Silex, and Nette. Version 3.9.8 is stable; 3.8 and earlier are unmaintained.
yoyo-migrations
yoyo-migrations has no write-up on Specifiction yet; its figures are above.