Discussion:
[Vtigercrm-developers] Module manager - updating existing module
socialboostdk
2018-11-06 10:57:44 UTC
Permalink
Hi there,

I have a "silly question":

If i make and install a module version 1.0, is it possible to make it so
that when i later make a version 1.2 it will update the existing module?
Ie. also apply database-changes?

In "the old days" this was not possible (
https://wiki.vtiger.com/index.php/Module_Manager#Upgrade_Module) but is it
not today?

Thank you for your input :)

Chris
IT-Solutions4You
2018-11-06 14:05:48 UTC
Permalink
Installation proces search for module, if exist then Upgrade it.

Matus
Post by socialboostdk
Hi there,
If i make and install a module version 1.0, is it possible to make it so
that when i later make a version 1.2 it will update the existing module?
Ie. also apply database-changes?
In "the old days" this was not possible
(https://wiki.vtiger.com/index.php/Module_Manager#Upgrade_Module) but is
it not today?
Thank you for your input :)
Chris
_______________________________________________
http://www.vtiger.com/
_______________________________________________
http://ww
S T Prasad
2018-11-06 14:23:18 UTC
Permalink
Hi again Chris,

As mentioned earlier, there are events triggered during module install.
Upgrade methods are triggered by

} else if($eventType == 'module.preupdate') {
// TODO Handle actions before this module is updated.
} else if($eventType == 'module.postupdate') {
// TODO Handle actions after this module is updated.

The developer of the module has to take care as illustrated in the above
snippet



With best regards,

S.T.Prasad (Skype: ***@stprasad.com)
Founder and Chief Shikari
http://www.vtigress.com
The Purr-fect mate for vTiger
Certified Solution Partner for Asia and Africa
Post by IT-Solutions4You
Installation proces search for module, if exist then Upgrade it.
Matus
Post by socialboostdk
Hi there,
If i make and install a module version 1.0, is it possible to make it so
that when i later make a version 1.2 it will update the existing module?
Ie. also apply database-changes?
In "the old days" this was not possible (https://wiki.vtiger.com/index
.php/Module_Manager#Upgrade_Module) but is it not today?
Thank you for your input :)
Chris
_______________________________________________
http://www.vtiger.com/
_______________________________________________
http://www.vtiger.com/
Loading...