mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
bin/console make:migration creates same migration over and over #6542
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @henrypenny on GitHub (Sep 17, 2020).
I have the following field definition:
When I do
bin/console make:migrationit generates this:The up and down statements are identical. Also, if I run the migration and then do
bin/console make:migrationit creates the same migration again... if I make real mapping changes, each new migration includes the statements above.I've seen this behaviour before and it was a subtle and semantically meaningless variation in the annotation syntax that tripped things up.
I think perhaps a final sanity check to ensure the up and down statements aren't identical might be a good addition.
@dvdknaap commented on GitHub (Sep 17, 2020):
@henrypenny i got the same issue for months already. there was a issue about this but i can't find it anymore.
I got this issue with every ORM\Column that use 'options' at every 'make:migration' it will be added again