dotkernel / api

DotKernel's PSR-7 REST style API built around the Mezzio API skeleton.
https://docs.dotkernel.org/api-documentation/
MIT License
35 stars 5 forks source link

Doctrine - Migration does not use transaction #115

Closed arhimede closed 2 years ago

alexmerlin commented 2 years ago

This could be an issue only for Doctrine version lower than 3, because for Doctrine 3.*, according to their documentation:

By default, migrations are transactional, meaning code in a migration is wrapped in a transaction. Setting transactional to false will disable that.

Also, when running multiple migrations, we have all_or_nothing enabled in migrations.php:

When using the all_or_nothing option, multiple migrations ran at the same time will be wrapped in a single transaction. If one migration fails, all migrations will be rolled back

arhimede commented 2 years ago

@cPintiuta i am adding Claudiu to the thread as he is the one which encountered the issue Please add the Doctrine version and stuff