Upgrading from 0.2 to 0.3

After 0.2 the internationalization mechanism was switched from definitions to gettext. Make sure your version of PHP supports gettext and has the locales for the languages you want to use installed. (See Requirements)

All application settings that were formerly defined in etc/config.php are now managed within phpaga itself. Once you have configured etc/config.local.php, you can fire up your browser and change these settings from the Admin menu ("Sitewide settings").

Make sure you have PEAR DB version >= 1.6. Install the PEAR packages Log and Mail and all other required PEAR packages.

Execute the scripts required to upgrade the database structure. Depending on the RDBMS you are using, this will be sql/upgrade_0.2-0.3.pgsql for PostgreSQL or sql/upgrade_0.2-0.3.mysql for MySQL. If you use MySQL, execute also sql/mysql-innodb.mysql; this will convert all database tables to the InnoDB format.

phpaga 0.3 introduces a permission system. In order to migrate to the permission system, the former administrator gets all available permissions. It is then in her responsibility to assign the proper permissions to the remaining users. The necessary SQL statement to perform this migration is contained in the upgrading scripts (see above paragraph).

phpaga 0.3 introduces news to the billing system. Invoices can now have line items. In order to convert the existing invoices to the new format, you will need to run a conversion script. This script must be run after upgrade_0.2-0.3.(pgsql|mysql) has been applied and before any new invoice is created. The script is named convert_invoices.php and located in the directory tools/. Open the file with an editor and set the parameters in the first section according to your configuration. Then run the script from the shell.