How can I delete the old migrations differences? When doing doctrine:generate-migrations-diff
I get no problems, but when doing the doctrine:migrate
I get problems. It seems as if doctrine is trying to migrate old stuff that doesnt "count" any longer ...
Thanks
Just to complement the selected answer (from the documentation):
Adding a version:
./doctrine migrations:version YYYYMMDDHHMMSS --add
Deleting a version:
./doctrine migrations:version YYYYMMDDHHMMSS --delete
The command does not execute any migrations code, it simply adds the specified version to the database.
More info
Either delete the migration class or add the generate version table (can't remember the exact name) and set the value to the migration you want start from.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With