Edit

Share via


OnUpgradePerDatabase (Codeunit) trigger

Version: Available or changed with runtime version 1.0.

Runs during the upgrade of an extension.

Important

The Subtype Property must be set to Upgrade in the Codeunit.

Syntax

trigger OnUpgradePerDatabase()
begin
    ...
end;

Note

This trigger is also available in upgrade codeunits for the base application, not just for extensions.

Remarks

It is used to perform the actual upgrade. If an error occurs during runtime the extension upgrade is canceled.

This trigger is run once in the entire upgrade process, in a single system session that does not open any company.

Get Started with AL
Developing Extensions