sylius-labs/doctrine-migrations-extra-bundle
Symfony bundle extending DoctrineMigrationsBundle with container-aware migration instantiation and topological sorting of migrations across multiple namespaces/bundles. Configure migration dependencies to ensure predictable, correct execution order in apps or bundles.
PaymentPlugin, InventoryPlugin) migrate in the correct order relative to core or other plugins.Adopt When:
Look Elsewhere If:
"This package solves a critical pain point in scalable PHP applications: migration dependency hell. Imagine plugins like ‘Stripe Payments’ or ‘Inventory Tracking’ failing to deploy because their database migrations ran out of order. This tool automates topological sorting—ensuring migrations execute in the correct sequence—while keeping our architecture modular. It’s a low-risk, high-reward investment: minimal dev effort, but it prevents costly deployment failures in production. Given our roadmap to support [X plugins] and [multi-tenancy], this is a foundational enabler."
*"This bundle replaces Doctrine’s default migration comparator with a topological sorter and adds container-aware version factories. Key benefits:
migrate --order hacks: Dependencies are declared in config (e.g., PluginA\Migrations → Core\Migrations).PrependExtensionInterface.Action Item: "Let’s prototype this in [Staging] by Q3 to test with our [PluginA] and [PluginB] migration chains."
How can I help you explore Laravel packages today?