pimcore / pimcore

Core Framework for the Open Source Data & Experience Management Platform (PIM, MDM, CDP, DAM, DXP/CMS & Digital Commerce)
http://www.pimcore.com
Other
3.41k stars 1.44k forks source link

[Pimcore Bundles] Execute migrations of Pimcore Bundles automatically on composer update? #5445

Closed fashxp closed 4 years ago

fashxp commented 4 years ago

right now, composer update updates composer dependencies, but potential migrations are not executed - and therefor project might be broken unless migrations are executed.

dpfaffenbauer commented 4 years ago

composer is not responsible of executing migrations. This should be sorted in a proper deployment procedure like: https://github.com/w-vision/pimcore-deployer/blob/master/deploy.sample.php#L78

dpfaffenbauer commented 4 years ago

I also always remove the composer script where Pimcore executes core migrations. That is completely wrong. Composer is about handling dependencies, not deployment tasks!

BlackbitDevs commented 4 years ago

What do you think of a configuration in app/config/config.yml to set if migrations should be executed automatically on composer update - be it core or bundle migrations?