Fileref:db/postgres7.php

From SLIS Second Life Wiki
Jump to: navigation, search

Folder.gif (parent)

This file is used to upgrade installations which use a PostgreSQL database. The upgrade function defined in it will check the current version against each newer version where changes were made, and alter the database appropriately.


Note for Moodle 1.7 and 1.8 use with PostgreSQL: even if an installation was carried out with the database-independent install.xml, this upgrade file will be used in addition and prior to the XMLDB equivalent upgrade.php. As such, upgrade commands currently only reside in the *.php upgrade files, and not the *.xml upgrade file. Moodle 1.9 is unlikely to continue supporting database-specific upgrade files, so in order to continue Sloodle support for pre-1.9 versions of Moodle, the upgrade commands will need to be placed in BOTH the *.sql and *.xml files -- however, some prevention against duplication of effort will be needed.


Compatibility note: this file is only required for Moodle versions which do not support XMLDB (i.e. pre-1.7). Support for that Moodle version will need to be dropped eventually, at which point this file (and the associated postgres7.sql) will no longer be necessary. The XML files will take their place.

This page is part of the SLOODLE documentation
Docs: Users | Administrators | Developers
Wiki Frontpage Sloodle.org
Personal tools