Upgrading Acquia Cohesion
When you upgrade your website to the latest version of Acquia Cohesion, database updates will be applied. You cannot roll back to a previous version of Acquia Cohesion. We recommend backing up your website before upgrading and applying updates on a development environment.
You can upgrade the Acquia Cohesion module using composer or manually.
Step 1a - Upgrade using composer
Using composer is the preferred way to upgrade Acquia Cohesion.
It is not recommended to edit the composer.json file manually.
Open your terminal and browse to the directory containing your project root directory. Run the following commands, updating the version number to the version you want to update too:
If your site uses the bitbucket repositories:
composer require cohesion/dx8:6.6.0
composer require cohesion/dx8-theme:6.6.0
If your site uses packagist:
composer require acquia/cohesion:6.6.0
composer require acquia/cohesion-theme:6.6.0
This will then update your Acquia Cohesion module and Acquia Cohesion minimal theme to the version you have set.
Step 1b - Upgrade manually
Upgrade Acquia Cohesion module
Navigate to the download page for the module: https://github.com/acquia/cohesion/releases and click "zip" or "tar.gz" on the top entry to download the Acquia Cohesion module.
Once the file has downloaded, unzip it, rename the folder to "acquia-cohesion" and then copy to your /modules/contrib/ directory of project. When prompted click "replace" to replace your older version of Acquia Cohesion with the new one you just downloaded.
Upgrade Acquia Cohesion minimal theme
Navigate to the download page for the theme: https://github.com/acquia/cohesion-theme/releases and click "zip" or "tar.gz" on the top entry to download the theme.
Once the file has downloaded, unzip it, rename the folder to "acquia-cohesion-theme" and then copy to your /themes/contrib/ directory of your project. When prompted click "replace" to replace your older version of the Acquia Cohesion minimal theme with the new one you just downloaded.
Step 2 - Run drush commands
Next, you will need to run a few drush commands, open up your terminal and browse to your project root directory.
First, you should clear your website cache.
Next, you will need to do a database update. Running this command will apply database updates to your Drupal site that the new version may require.
drush updb -y
Then finally you will need to run a Acquia Cohesion import and rebuild.
drush cohesion:import drush cohesion:rebuild
Once Acquia Cohesion has finished running the import and rebuild, your Acquia Cohesion version will now be up to date with the version you downloaded.