Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

Info

This assumes that you are already using Opigno 2.x (this does not cover upgrading from Opigno 1.x branch).

This also assumes that you initially installed Opigno using Composer. If you initially installed Opigno by downloading the tarball version, upgrade with Composer won't work.

As of Opigno 3.x, only Composer is advised for installation and upgrade.

Update to Opigno LMS latest version (

...

at the time of writing this manual it is 8.x-2.29)

If there are updates for Opigno LMS you can easily install them with Composer.

...

Install updates:
- UPDATING TO 8.x-2.29 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
languagephp
// 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:

...

Updating is possible only from the latest version (at the time of writing this manual it is 8.x-2.2829)

The first step is to check hosting environment matches the platform requirements of Drupal 9. The upgrade process is largely related to the transition to D9 and we will check using the Upgrade Status project to check contrib and custom modules compatibility.

...