migrations icon indicating copy to clipboard operation
migrations copied to clipboard

Migration doesnt work after update to 3.8.0 ( Throws an exception if addSql is used in post methods)

Open ko4an4ik opened this issue 1 year ago • 9 comments

Q A
Version 3.80

Support Question

We encountered the following issue - after the execution of composer update, some of our migrations stopped working correctly.

In FrozenMigration.php line 13:
                                                         
[Doctrine\Migrations\Exception\FrozenMigration]        
 The migration is frozen and cannot be edited anymore.  

This is related to this merge request: https://github.com/doctrine/migrations/pull/1432

I might have missed this, but I expected that updating from doctrine/migrations 3.7.4 to 3.8.0 would not introduce any backward-incompatible changes.

In project, we don't have a direct dependency on doctrine/migrations, only on doctrine/doctrine-migrations-bundle. Could you please advise on how to properly version the doctrine/doctrine-migrations-bundle package to ensure that I don't get any backward-incompatible changes when running composer update?

Thank you for any response.

ko4an4ik avatar Jun 28 '24 15:06 ko4an4ik