Open VincentLanglet opened 1 month ago
I opened our old MR where we did exactly this and here are some core steps we did:
doctrine/migration
and created & filled new table via:
bin/console migration:init
bin/console migration:skip
bin/console doctrine:migrations:migrate
-> bin/console migration:run both
bin/console doctrine:migrations:status
-> bin/console migration:check
ShipMonk\Doctrine\Migration\MigrationCheckCommand:
ShipMonk\Doctrine\Migration\MigrationGenerateCommand:
ShipMonk\Doctrine\Migration\MigrationInitCommand:
ShipMonk\Doctrine\Migration\MigrationRunCommand:
ShipMonk\Doctrine\Migration\MigrationSkipCommand:
ShipMonk\Doctrine\Migration\MigrationService:
$migrationsDir: "%kernel.project_dir%/migrations"
$migrationClassNamespace: 'SHipMonk\Migration'
$migrationClassPrefix: 'Version'
$templateFilePath: "%kernel.project_dir%/migrations/migration.template"
- Changed the template like this:
- ![image](https://github.com/user-attachments/assets/cf4173a9-bc40-4f32-87ad-3a66a2118781)
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).