When you upgrade your website to the latest version of Site Studio, database updates will be applied. You cannot roll back to a previous version of Site Studio. We recommend backing up your website before upgrading and applying updates on a development environment.
You can upgrade the Site Studio module using composer or manually.
Step 1a - Upgrade using composer
Using composer is the preferred way to upgrade Site Studio.
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:
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 Site Studio with the new one you just downloaded.
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.
drush cr
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 do a Site Studio import and rebuild.
Using drush 9:
drush cohesion:import
drush cohesion:rebuild
Using an earlier version of drush:
drush cohesion-import
drush cohesion-rebuild
Once Site Studio has finished running the import and rebuild, your Site Studio version will now be up to date with the version you downloaded.
Upgrading Site Studio
Important
When you upgrade your website to the latest version of Site Studio, database updates will be applied. You cannot roll back to a previous version of Site Studio. We recommend backing up your website before upgrading and applying updates on a development environment.
You can upgrade the Site Studio module using composer or manually.
Step 1a - Upgrade using composer
Using composer is the preferred way to upgrade Site Studio.
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:
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 Site Studio with the new one you just downloaded.
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.
drush cr
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 do a Site Studio import and rebuild.
Using drush 9:
drush cohesion:import
drush cohesion:rebuild
Using an earlier version of drush:
drush cohesion-import
drush cohesion-rebuild
Once Site Studio has finished running the import and rebuild, your Site Studio version will now be up to date with the version you downloaded.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.