Community » Applications » Nag
These are instructions to upgrade from earlier Nag versions. Please backup your existing data before running any of the steps described below. You can't use the updated data with your old Nag version anymore.
Upgrading Nag is as easy as running:
pear upgrade -a -B horde/nag
If you want to upgrade Nag with all binary dependencies, you need to remove the -B flag. Please note that this might also try to install PHP extensions through PECL that might need further configuration or activation in your PHP configuration:
pear upgrade -a horde/nag
If you want to upgrade to an alpha or beta version of Nag, you need to tell the PEAR installer to prefer non-stable package versions. Please note that this might also install pre-release 3rd-party PEAR packages:
pear -d preferred_state=alpha upgrade -a horde/nag
If you want to upgrade from a Nag version prior to 3.0, please follow the instructions in INSTALL to install the most recent Nag version using the PEAR installer.
After updating to a newer Nag version, you always need to update configurations and database schemes. Log in as an administrator, go to Administration => Configuration and update anything that's highlighted as outdated.
Some fields in the SQL share driver tables have been changed. Execute the provided SQL script to update your database if you are using the native SQL share driver.
mysql --user=root --password=<MySQL-root-password> <db name> < scripts/upgrades/2.2_to_2.3.sql
A few new fields have been added to the default SQL table layout.
Execute the provided SQL script to update your data to the new Nag version, e.g.:
mysql --user=root --password=<MySQL-root-password> <db name> < scripts/upgrades/2.1_to_2.2.sql
You also have to execute the provided PHP script: