Exit AD0-E724 Adobe Commerce Developer Professional
Question 3 of 5
0% complete
Q3 Single choice

The developer is required to convert a modules database scripts from old install/upgrade setup files to a data patches format and does not want to apply database changes that were already done by install/ upgrade scripts.

The current module version is 1.5.4.

What would be the recommended solution to skip changes that were already applied via old format (install/ upgrade scripts)?

  • A

    Implement Patchversioninterface and return 1.5.4 on the getversion() method.

  • B

    Inside apply() method, check for module version and run the code if version is less than 1.5.4.

  • C

    This is not possible. A module cannot implement both data patch and install scripts.