Hello
I’ve written a module for 1.X and now need to update it, changing some of the database structure without loosing information in the tables that were created as the module installed.
There’s module_install and module_deinstall functions but can’t see an module_update anywhere. Does anyone have any examples I could use of how to do this?
Thanks
There isn’t anything built in to auto-run an update function. I’d recommend adding a method in your mcp.MODULE.php file for your update check and execution, and run it within your home method (whatever you run on the module’s CP home page). If the version is old and needs an update, perform the update and return a visual message. If not, silently return nothing additional.
Does that make sense?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.