Sometimes I use any of the following mentioned names to name the install/upgrade scripts in custom modules.




Is there a standard way to follow for this naming conventions for install/upgrade scripts?

Any suggestions will be appreciated. Thanks in advanced.

2 Answers 2


As far as I'm aware this is purely a matter of preference. I would assume the intended versioning should comply with app/Mage.php:

public static function getVersionInfo()
    return array(
        'major'     => '1',
        'minor'     => '4',
        'revision'  => '2',
        'patch'     => '0',
        'stability' => '',
        'number'    => '',

So if you don't consider your releases as patches, I'd say you're fine with 3 parts.


I would match the version numbers you are using in your config.xml file (which can be 3 or 4 numbers long).

  • They can be as along as they want. In \Mage_Core_Model_Resource_Setup::applyUpdates is a compare_version check, so you can do whatever this function gives you. But as Cags said, numbers and points are fine! :-) Commented Nov 8, 2013 at 20:01
  • His question mentioned 3 or 4 parts - but yes it can be anything that the compare_version can process. Commented Nov 8, 2013 at 23:09
  • Didn't read it that way, but as always, you are right :-)0 Commented Nov 8, 2013 at 23:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.