-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to re install missing foreign-key constraints? #32289
Comments
Hi @Eddcapone. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Maybe problem related with this solution #32286 |
Nope, that's something completely different :) @Eddcapone, you'll need to provide some more details and actually github isn't really the correct place to discuss these sort of things, you'll probably want to try https://magento.stackexchange.com/ |
@hostep , This is not a bug report. I created the issue under Developer Experience Issue. I did not added steps since I thought it is self explanatory. To reproduce you just have to delete a random constraint and then try to look for a command which is able to install it again. I also posted it under magento.stackexchange already: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions! |
Summary (*)
I am using a third party extension.
I noticed that a constraint is missing by comparing with a fresh installation. This causes a bug when deleting an item of the extension.
Is there a command which is able to install missing constraints?
I've tried
but none of these commands re-installed the missing constraint.
The only way I've found is deleting the table and the extension entry from the table
setup_module
and executingphp bin/magento setup:upgrade
, but this is too radical since I have to re-add the dataExamples (*)
If you like to reproduce it, then just delete a random Foreign Key Constraint, then try to execute
and see if the constraint was added again.
Proposed solution
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: