-
Notifications
You must be signed in to change notification settings - Fork 1.7k
magento/devdocs#: Develop data and schema patches. Revert module datapatch #4504
magento/devdocs#: Develop data and schema patches. Revert module datapatch #4504
Conversation
An admin must run tests on this PR before it can be merged. |
@@ -120,6 +119,22 @@ The following code sample defines a data patch class that has a dependency. | |||
} | |||
``` | |||
|
|||
## Reverting data patches | |||
|
|||
Magento does not allow the reverting of a particular module data patch. It only allows the reverting of all module data patches per the `module:uninstall` command. |
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.
Magento does not allow the reverting of a particular module data patch. It only allows the reverting of all module data patches per the `module:uninstall` command. | |
Magento does not allow you to revert a particular module data patch. However, you can revert all `composer` installed or `non-composer` installed data patches using the `module:uninstall` command. |
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.
fixed
|
||
Magento does not allow the reverting of a particular module data patch. It only allows the reverting of all module data patches per the `module:uninstall` command. | ||
|
||
Run the folowing command to revert all the module's data patches (only for modules that have been installed through `composer`): |
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.
Run the folowing command to revert all the module's data patches (only for modules that have been installed through `composer`): | |
Run the following command to revert all `composer` installed data patches: |
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.
fixed
bin/magento module:uninstall Vendor_ModuleName | ||
``` | ||
|
||
To revert all `non composer` data patches, run: |
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.
To revert all `non composer` data patches, run: | |
Run the following command to revert all `non-composer` installed data patches: |
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.
fixed
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.
@erikmarr , requested changes have been implemented. Could you please review?
Thank you!
running tests |
Hi @atwixfirster, thank you for your contribution! |
Thanks @atwixfirster! |
Purpose of this pull request
This pull request (PR) adds information how to revert module's data patches.
Affected DevDocs pages
Links to Magento source code
whatsnew
Added "Reverting data patches" section to Develop data and schema patches.