php bin/console doctrine:schema:update --dump-sql - suggests redundant ALTER #8929
Replies: 3 comments 1 reply
-
Can you please also add your config/metadata for the involved entities? |
Beta Was this translation helpful? Give feedback.
-
I unearthed the issue for the most part. For reference, my metadata was set up as:
First was that my entity metadata did not have onDelete="SET NULL". I corrected that. The only remaining issue seems to be that doctrine still tries to enforce the FK contraint name "FK_2AF5A5C873649CA". Is there anywhere that documents the reason for enforcing a constraint name of this format? |
Beta Was this translation helpful? Give feedback.
-
Hm, I can't reproduce this behaviour. The only difference is that my entities are all in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking at using
To fix some issues between my schema and database.
Based on the output of that statement, I ran this ALTER:
And looking at my schema, the FK was added as well as an INDEX to that table (asset).
However, when I re-run the same query, it's still asking me to re-run the same ALTER.
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions