Description
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
php -f bin/magento setup:db-schema:upgrade
php -f bin/magento setup:db-data:upgrade
php -f bin/magento setup:upgrade
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 executing php bin/magento setup:upgrade
, but this is too radical since I have to re-add the data
Examples (*)
If you like to reproduce it, then just delete a random Foreign Key Constraint, then try to execute
php -f bin/magento setup:db-schema:upgrade
php -f bin/magento setup:db-data:upgrade
php -f bin/magento setup:upgrade
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.
- Severity: S0 - Affects critical data or functionality and leaves users with no workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.