Jump to content

Fundraising/tech/crm/Upgrade CiviCRM

From Wikitech

Upgrading CiviCRM

  • First, make sure you have core set up as a git repo within your wmf. If you don't have it yet (cd core/ && git init git && remote add origin https://github.com/civicrm/civicrm-core).
  • Then pull in the relevant branch like (git fetch 6.nn & git reset --hard origin/6.nn), then git add /core
  • Now you should see the changes in you main wmf repo. You may need to adjust PHPStorm settings to unregister the directory mapping for core.
  • You'll have to do the same for /packages for updates to civicrm-packages.
  • Commit and git review as normal.

Composer: You may also want to do composer updates, see Fundraising/Cluster/Deployments for details.

Deploying a CiviCRM upgrade

Please note that your particular upgrade may require additional precautions or other action, see the CiviCRM release notes for details.

  • Shut down all process-control jobs which depend on the CRM. Just turn 'em all off if you're feeling lazy.
  • Verify database backups are current.
  • Deploy new wikimedia/fundraising/crm code.
  • Beyond this point, know that you cannot recover safely without doing a full database restore...
  • Run the database updates:
cv updb
  • Turn jobs on again, slowly and carefully.

See also