By pyctures on
What is the best process to upgrade a module ?
1) uninstall the old version ?
=> Through the administration pages (Administer/Site building/Modules/List : unselect the module , then Administer/Site building/Modules/Uninstall...)
2) stop drupal ? (or Apache ? or MySQL ? ...)
3) unzip the new version of the module in the right directory (drupal-x.x/sites/all/modules/...)
4) start drupal ?
5) select the module in the admin (Administer/Site building/Modules/List)
Furthermore, is it possible to upgrade from a x.3 version of the module to a x.7 version ? (I mean, do I need to install each intermediate version or just take the latest one)
At the end, is their a roll back process ?
Comments
1. Don't uninstall unless the
1. Don't uninstall unless the instructions tell you that you have to do so before upgrading. Uninstall removes information that you may want--like all of the data the module may have created.
2. When upgrading a live site you should put it in Offline mode. If you stop the web server or database server your site will be completely inactive and you won't be able to update it.
3. I start by removing the old module directory. Then I upload the new version's module directory.
4. Always run update.php
As for your final question, read the module documentation. Normally you don't need to do each minor release.
One thing
Hi ScoutBaker,
I think you are right on. The only thing I would add is check the module release notes. Sometime release notes have special upgrade instruction.
You're right. I consider that
You're right. I consider that to be part of the module documentation. If you want to list such things out there's README.txt, the project page, contrib module documentation pages, etc. Thus, I summarized—module documentation.