How to upgrade drupal

From Mass Pirate Wiki
Revision as of 10:39, 9 May 2015 by Srevilak (talk | contribs) (initial revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The drupal upgrade process is similar in spirit to the upgrade process for wordpress.

Back up the database

 mysqldump --verbose -u USER -pPASSWD  masspirate_drup | gzip -9 > ~/masspirate_drup.$(date +%F).sql.gz

replacing USER and PASSWD with appropriate values.

Make sure all files are checked in

 $ git status
 # On branch master
 nothing to commit (working directory clean)

To upgrade

 drush pm-update --no-core

After upgrading, do git status and git add or git rm changed (removed) files, then

 git commit
 git push origin
 git remote update
 git merge origin/master

MF/PL's infrastructure handles updates to drupal core.

For civicrm upgrades, I've found

 $ drush help | grep civicrm-upgrade
  civicrm-upgrade       Replace CiviCRM codebase with new specified tarfile and upgrade         
  civicrm-upgrade-db    Execute the civicrm/upgrade?reset=1 process from the command line.

this seems promising, and I plan to try it the next time we need to upgrade civicrm.