How can you force Magento to execute an existing Data Patch file again?

While developing a module you need to modify an existing Data Patch.
How can you force Magento to execute an existing Data Patch file again?
A. By removing the Data Patch, running the command: bin/magento setup:db-data:upgrade, then copying the file back and running the command again
B. By deleting the record with the Data Patch class name from the table patch_list table
C. By changing the version of the Data Patch in the getVersion method
D. By modifying the data_version value in the setup_module table

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “How can you force Magento to execute an existing Data Patch file again?

  1. Correct Answer is B
    Patches are only run one time if you want to run it again you need to delete it’s entry from database table

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.