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

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.5A

What would be the recommended solution to skip changes that were already applied via old format (install/upgrade scripts)?
A . This is not possible. A module cannot implement both data patch and install scripts.
B . Inside apply() method, check for module version and run the code it version is less than 134,
C . Implement PatchVersioninterface and return 1.5.4 on the getversion() method.

Answer: C

Latest AD0-E709 Dumps Valid Version with 135 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments