Skip to main content

Q. How and where does Magento differentiate between install, upgrade, and downgrade scripts?

In Mage_Core_Model_App::_initModules(), calls Mage_Core_Model_Resource_Setup::applyAllUpdates(), and it then calls applyUpdates() to check version number from config.xml.. if lower version number, it rollbacks; if greater version number, it upgrades. The config.xml version number is checked against core_resource table’s version of the module.

By Michael Cristancho

I'm a Digital Commerce and Experience evangelist who enjoys engaging in thought-provoking conversation and mutual exploration. I am a strong believer that learning never ends, and each day brings another opportunity to grow as an individual and professional.