Upgrade hooks

A Match-IT upgrade can destroy user created objects (views, triggers etc.) in our SQL schema. Upgrade hooks provide a means to save/restore these objects around an upgrade.

In the data/match-it.set file you can create new section like this:-

[Hooks]
BeforeUpgrade=full path to a program/script to run before upgrade starts
AfterUpgrade=full path to a program/script to run after upgrade finishes

If the [hooks] section is missing or the values are empty no hook is run. If the BeforeUpgrade hook fails the whole upgrade fails.The AfterUpgrade hook is run irrespective of the success or failure of the upgrade.