[Koha-devel] Plugins upgrade
Tomas Cohen Arazi
tomascohen at gmail.com
Wed Apr 10 16:20:44 CEST 2019
Hi all, I wanted to share something I added to the GOBI plugin I wrote.
A while back we added an upgrade method for plugins, but there's no fixed
way of handling it, it will just call the upgrade method if version doesn't
match.
So for the first time I used it, and wanted to share the results just in
case
- Someone finds it valuable for copy and paste
- Someone has better ideas for enhancing this.
The code:
https://github.com/thekesolutions/koha-plugin-gobi/blob/master/Koha/Plugin/Com/Theke/GOBI.pm#L736-L755
Thanks for your feedback!
--
Tomás Cohen Arazi
Theke Solutions (http://theke.io)
✆ +54 9351 3513384
GPG: B2F3C15F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20190410/938abddf/attachment.html>
More information about the Koha-devel
mailing list