shipmonk-rnd / doctrine-two-phase-migrations

Two phase migrations for Doctrine ORM: before and after deploying new codebase version
12 stars 0 forks source link

Coming from Doctrine/Migrations #97

Open VincentLanglet opened 1 month ago

VincentLanglet commented 1 month ago

HI,

I just discovered this lib and it seems great. But I already have doctrine migrations.

What could be great would be having some doc about how to migrate from Doctrine to this lib

(Also the rollup command from doctrine is nice, having the same here would be great).

janedbal commented 1 month ago

I opened our old MR where we did exactly this and here are some core steps we did:


- Changed the template like this:
  - ![image](https://github.com/user-attachments/assets/cf4173a9-bc40-4f32-87ad-3a66a2118781)