Skip to content

Running database updates

Ricky edited this page Jan 19, 2020 · 2 revisions

There is now a basic framework to run database updates for system modules, updates can be run when a module is installed or uninstalled or when the system admin manually runs updates. These are all triggered through the admin interface available to admin users.

Install

Implement method install in the main module file ([module_name].php)

Uninstall

Implement method uninstall in the main module file ([module_name].php)

Still todo: Manual update

Implement method databaseUpdateN in the main module file ([module_name].php) where N is an incremental update number starting from 1.