[Drupal] Drupal 6 to Drupal 7 Migration step 2 - Drupal 6 core and contrib minor version update.

By | 12 th Jun 2015 | 2 min read

This step may seem irrelevant, but is absolutely necessary as the minor versions may have database changes which maybe reflected in major upgrade. (Minor upgrade example : 6.11 to 6.19 and major upgrade example : 6.19 to 7.34). If you are using git, make sure to checkout a new branch before updating code so that the code is backed up and take a dump of the local database you are working on.

To see whether minor version updates are available, either go to the path /admin/reports/updates on your site and you can see the available updates on your site or you can use drush to check for updates. Run drush pm-updatestatus. This will display a list of the modules with updates.

To update the modules or core if any, follow a safe hierarchy. Update the contrib modules first and then the core. This can also be accomplished using drush. Run drush pm-updatecode --no-core this will update the code for all the contrib modules. Then run update.php (i.e. www.yoursite.com/update.php) which is the same as running drush updb(not recommended, issues with older versions) from command line.

To update core, run drush pm-updatecode and run update.php.

After minor version update you can proceed to the next step where we actually start the migration process. If the minor version is not updated, the next step may very well crash so make sure to run drush pm-updatestatus before you move on to the next step. The next step is to update core to Drupal 7.