cconard96 / jamf

JAMF Plugin for GLPI
GNU General Public License v2.0
6 stars 5 forks source link

Add basic migrations system #53

Closed cconard96 closed 4 years ago

cconard96 commented 4 years ago

The install function in the hook.php file was getting way too long and difficult to track changes made in each version. A new migration system was made to handle updates in a cleaner manner.

Since the plugin version was not tracked before now, the update to 2.0.0 will take longer than usual as it replays migrations for all versions between 1.0.0 and 2.0.0. These version migrations should be replayable with little or no effect if run multiple times. Still, it would be best to make sure you have a working backup of your GLPI DB before updating (I recommend that anyways).