Updating ADAM
Updates for ADAM are released regularly - at least twice per month and even up to once per day, depending on the reason for the update. Most updates are applied automatically overnight and do not require any user intervention. The process below is only for updates that are not applied automatically and, if there is such an update, you will receive an email warning you of such in advance of the update being made available.
Notifications of large updates with significant changes in functionality are communicated via our mailing list. If you would like to be added to the mailing list, please ask us! Send an email to help@adam.co.za.
Applying Updates Manually
Most updates are applied automatically without any intervention required from you. However, it is useful to know how one can apply an update if it is required for an urgent change.
Applying database updates
Some updates include changes to the structure of the database. These database updates are applied on the ADAM server using ADAM’s command-line tools. They are not applied through the web interface, and they are no longer applied automatically when you log in or by the overnight cron service.
Warning
While database updates are pending, ADAM is unavailable to everyone using it through a web browser. Anyone who visits the site sees an “ADAM is being upgraded” page reading “The database is being updated to a new version. Please try again shortly.” (an HTTP 503 response). The site becomes available again automatically as soon as the pending updates have been applied.
To apply the pending database updates:
- Log in to the ADAM server over SSH as a user that is permitted to run ADAM’s command-line tools.
- Change to the ADAM installation directory (for example,
/var/www/adam). -
Check which updates are pending:
bash php adam schema:status -
Apply the pending updates:
bash php adam schema:migrate -
ADAM lists each update as it is applied and confirms when the database is up to date. Once the command has finished, the web interface becomes available again automatically.
Note
On servers with an automated deployment process, php adam schema:migrate runs as part of each deployment, so pending database updates are normally applied for you. You only need to run it by hand if a deployment did not complete, or when the ADAM support team asks you to.
To apply an update file sent by email
- Save the attachment from the email to your computer.
- Log into ADAM using an administrator account with the necessary permissions from any computer with Internet access.
- Navigate to “Administration” → “Updates” → “Apply ADAM Update”.
- Browse to find the file you saved and upload it.
- ADAM will double-check to ensure that you have not skipped an update or are attempting to apply updates in the wrong order. ADAM will then apply the update.
- Please wait for the summary report to be shown. ADAM will show you any inconsistencies that might exist between your server and the manifest that was included in the update.
- Please log out of ADAM and log back in again with your administrator account.
Note
If the update includes database changes, apply them from the server afterwards by running php adam schema:migrate, as described under Applying database updates above.
