Jump to content

More details or docs regarding addon module auto updates.


durangod

Recommended Posts

Hi, i read the section on module updates. It did not provide enough detail or samples for me to understand how the process works. When we do the update are we updating your modtable or does that table see the new version in the config right away? What throughs me off is that sample you have, why am i adding a element to a table and especially your table lol..

 

That sample totally confuses me compared to the test.

 

Are there better docs or resources? I dont have to worry about it now cause we just released this version but i hope i can get this figured out by the time im ready to issue an update.

 

I understand that the upgrade utility looks at the config, so can you split the sides up so i know.

What do i need to do update sql wize to update your side? Just change the config, thats it?

I know what to do with my created module tables.

 

Thanks :)

Link to comment
Share on other sites

The _upgrade function runs when visiting Setup >> Addon Modules.

 

You don't need to do anything special regarding the version that's shown within WHMCS on that page; WHMCS will update it itself based on the version that you've set within the _config function.

 

You need not do anything within the _upgrade function unless you're needing and/or wanting to do something for your own use. For example, to change the schema of your own database table; or, whatever else you may need to do for the update.

Edited by TekStorm Inc - James
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated