Updating Modules

Zythyr - July 4, 2009 - 05:50

I read the documentations and stuff, but I am a bit confused about updating modules. I am currently running Drupal 6, and I went to the available updates page. It says some of my modules require an update. For example it says I am running 6.x-1.15 version of Fivestar and the recommend version is 6.x-1.17. So I downloaded the latest version. What do I have to do now to update it? Do I just upload the new files to where my old module was located? Do I have to disable the module first before uploading the new files?

Instead of a long explanation

dddave - July 4, 2009 - 06:59

Thanks. I just want to make

Zythyr - July 4, 2009 - 07:46

Thanks. I just want to make sure I understood the guide correctly.

1)I have to disable the module I am performing an update one.
2) I have to upload the new files.
3) Enable the module
4) execute the update.php.

My question is, when uploading the new files of the module, should I delete the old files first?

.

dddave - July 4, 2009 - 08:00

Don't forget to set your site into maintanance mode so that users cannot interfere or discover odd behaviours.

Don't delete the old files as you loose all your settings by doing so. The normal procedure is to upload the new ones "over" the old ones. In some rare cases the release notes will tell you to do otherwise but in 99% of the time you simply upload the new files.

After running update.php you can set the page back into onlinemode.

When you disable old module,

oboskovic - July 4, 2009 - 08:02

When you disable old module, then you can delete files form that module. After that you can upload files from new module.

There is no need to delete anything

dddave - July 4, 2009 - 08:31

Normally when upgrading within a branch you don't delete anything. It can be necessary when major structural changes are commited with a new version (e.g. Panels 2 -> Panels 3) but for example the upgrade from fivestar .15 to .17 can be done without deleting.

See also http://drupal.org/node/479822#comment-1655960

Cool, got it. Thanks.

Zythyr - July 4, 2009 - 18:33

Cool, got it. Thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.