I'm making an update for one of my infusions and I was wondering if any of the other infusion authors can answer my question.
Say I have an infusion that's been released and I want to release an update for it. Instead of the people that use my infusion having to defuse then re-infuse, I know there's an 'update' option.
Is there anything special that goes into infusion.php that makes it see the update (other than changing $inf_version to a higher number?)
My goal is to leave the user's current database the way it is, but add entries into DB_SETTINGS_INF on update without the user having to defuse and re-infuse with the new version.
Is this possible, or am I barking up a pointless tree?
You can not add new tables on an update with standard infusion.php. I made it that way, that i added a check in the infusion's admin section if the newest version is installed and if all required tables exists. If not, a button appears wich adds the new tables and updates the version number.
That makes sense. I looked through the /administration/infusions.php file to see how it updates based on the contents of the infusions's infusion.php and found that the only thing it can, and will, do on an 'update' is change the version number, and allow $alterdbtable to pass through, otherwise, it ignores all else.
I'll try what you suggested though, Marcus. That makes sense for security reasons that an infusion's tables can't be updated.
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.