-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento2#: Declarative Install Schema. Add OnUpdate operation for constraints #24644
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
magento/magento2#: Declarative Install Schema. Add OnUpdate operation for constraints #24644
Conversation
Hi @atwixfirster. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Hi @buskamuza, As for me - looks good, but wanted to get your feedback was Tests could be fixed once idea will be approved. |
* | ||
* @return string | ||
*/ | ||
public function getOnUpdate() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually backward incompatible change. As for me - it's good reason to add it. @buskamuza what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@buskamuza any updates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created issue in architecture repo magento/architecture#310, hope it will help speed up response
@atwixfirster @ihor-sviziev @buskamuza This feature was removed on purpose. We would like to keep entities identifiers as immutable values. ON UPDATE action means that object identifier can be changed somehow. If you don't have any objectives to this, let's close this PR. |
Hi @atwixfirster, I'm closing this PR as it's not an issue. For more details see #24644 (comment) |
Hi @atwixfirster, thank you for your contribution! |
Thank you, @ihor-sviziev ! That was a nice try from my side. Thank you for explanation, @akaplya |
Description (*)
Now we can add
ON DELETE
operation for constraints viadb_schema.xml
only.Pull request adds the ability to add
ON UPDATE
operation for constraints.Syntax:
Example of usage:
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Thank you!