Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Another bug in Infusions?

How it was:

When installing an infusion that is not already installed, the PHP_fusion installer executes the inf_newtable[] from the infusion.php file of the infusion.

When updating an infusion that already is installed, the installer checks the version number. When new version has higher version, only the alter_table[] are executed.

Now:
In V9.03.50 when installing a new infusion the installer executes both the inf_newtable[] and the inf_altertable[].
This is given errors, because the newly added fields in the altertable[] section are also defined in the newtable[] section in case for a new install.
So when executing the altertable[] after executing the newtable[] section, you got errors for duplicate fieldnames.
That information is not written in the upgrade guide for infusions V7 -> V9.

But thanks for the explanation.
It's not only for v7 -> v9. I assume you are still using old v7 infusion API.

If you have infusion v1.1 and you want to add new tables you can add upgrade/1.2.upgrade.inc file with new tables. Then in Infusions page click to "Upgrade".
This is how the new v9 upgrade system works.
You can still convert them that way , the information was given about implementing upgrades.
No You cannot converting them that way.

If you are converting a infusion as described in the forum post, but the infusion.php from V7 contains code for updates, then you ending up with an infusion that cannot be installed under V9.
Thread Information
Author
Replies
7 posts
Views
139 times
Last Post
Last updated on 2 months ago
Related Threads
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, douwe_yntema, RobiNN