Answer the question
In order to leave comments, you need to log in
How to update module data in magento 2?
I am writing magenta modules that have a data update script Setup/InstallData.php. Now it was necessary to add new data in an already existing module. Started working with Setup/UpgradeData.php.
For rolling updates, system developers like to use this technique:
if (version_compare($context->getVersion(), '2.0.6', '<')) {
$this->upgradeVersionTwoZeroSix($customerSetup);
}
<module name="Vendor_CustomerAttributes" setup_version="2.1.0" schema_version="0.1.1"></module>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question