Before any upgrade, a full backup of your Opigno instance (database and files) should be done, so that you can revert to the previous version in case the upgrade doesn't go well.
...
Install updates:
- UPDATING TO 8.x-2.28 version: get this composer.json file. Then replace your old composer.json with a new one and then run the commands below
Note |
---|
NOTE: if you already installed some packages that are not part of Opigno LMS you should include them in a new composer.json file, otherwise Composer may remove them |
Code Block | ||
---|---|---|
| ||
// Clear composer cache composer clearcache // Check if updates will run without any issues composer update --dry-run // Run updates composer update |
During the update process, some warnings may appear in relation with some modules (drupal/calendar, drupal/views_role_based_global_text), mentioning that they were modified, and asking "Discard changes?". The answer should be "y".
These modules will be updated to new versions.
Then update database and clear cache in admin interface or by Drush:
...
and Opigno LMS 3.x will install all the necessary packages for you
3. Repository list list
Upgrade or roll back to the release version 3.0.2:
The latest composer.json with a repository list https://bitbucket.org/opigno/opigno-composer/src/3.0.2/composer.json .
Upgrade or roll back to the release version 3.0.1:
We are recommending upgrading to the latest version: Upgrade to the 3.0.2 release., but it is possible to follow this instruction for versions <= 3.0.1
We'll come back to the detailed review of the changes and the repository list, but now we will make a few important changes.
...