List of questions
Related questions
Question 31 - AD0-E716 discussion
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.
Your answer:
0 comments
Sorted by
Leave a comment first