Skip to content

Latest commit

 

History

History
114 lines (80 loc) · 3.66 KB

upgrade.rst

File metadata and controls

114 lines (80 loc) · 3.66 KB

upgrade

Usage

When Omeka detects that a user has installed a new version of the plugin, it automatically deactivates the plugin and presents an "Upgrade" button. This hook runs when a superuser clicks the "Upgrade" button. It is primarily used to migrate database tables and other data stored by older versions of the plugin.

Arguments

string old_version

The previous version that was installed and is being upgraded from.

string new_version

The new, current version of the plugin.

Examples