DbUp vs Doctrine Migrations
DbUp
dbup.github.ioDoctrine Migrations
doctrine-project.orgSide by side
| Figure | DbUp | Doctrine Migrations |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Linux | — | Yes |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Database Migration Tools | 7.6 (#18) | 8.5 (#6) |
| Purpose | DbUp is a .NET library that deploys database changes by tracking executed SQL scripts and running those needed to update a database. | Doctrine Migrations adds database schema versioning and helps deploy schema changes. |
| Support | The project points users to a Google Groups discussion group for questions and its GitHub issues page for bug reports. | The documentation directs users to the Doctrine mailing list, Slack, GitHub bug reporting, and Stack Overflow for help. |
| Transactions | It supports no transaction by default, a transaction per script, or one transaction, and cautions that not all changes can be rolled back. | The documentation covers all-or-nothing transactions and using or not using transactions. |
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.