Applying a Data Patch on the Declarative Schema in Magento 2.3

General News

Summary

Magento 2.3 brings a new feature called the Declarative Schema, which allows a developer to facilitate the Magento database installation (Installschema) and upgrading (Upgradeschema) processes, without performing any additional work, i.e. writing version updates for each new installation/upgrading process in etc/module.xml Create a custom module, as shown in the file structure below. Through the Data Patch Versioning, all the InstallData and UpgradeData will be replaced. In this case, the class name could possibly change, and if it does, we should supply the old class-name here, so that it doesn’t get executed a second time. getVersion() function can return a version number of the patch. Hope this blog was helpful to you on learning how to apply the Data Patch on the Declarative Schema in Magento 2.3.

Classifications

industries
Fintech & Banking
applications
E-Commerce & Retail

AskAI Classifications

Labels
Software Integration Platform ERP Integration SaaS

Linked Companies

DCKAP
$10M to $25M