Add functionality to update modules #12713
Replies: 8 comments 1 reply
-
its pointless removing the settings. they are not used. |
Beta Was this translation helpful? Give feedback.
-
A recent PR came back deleting module settings. We need support for updating extensions. Many modules have multiple configurations and the simple fact of having to uninstall to update makes the process onerous for developers and customers. It's a feature that has always existed in previous versions of OpenCart and it's very important. |
Beta Was this translation helpful? Give feedback.
-
they need to be there for updating the extension |
Beta Was this translation helpful? Give feedback.
-
An extension upgrade can be a little bit more complex than merely keeping the settings. It could also involve adding/removing/renaming files. And it might include structural DB changes. We need a separate upgrade function, in addition to install and uninstall. By default the upgrade can do a standard uninstall and install, but can optionally be overwritten by the extension author to implement one's own upgrade logic. |
Beta Was this translation helpful? Give feedback.
-
This problem needs to be solved. |
Beta Was this translation helpful? Give feedback.
-
I think it's important to have an upgrade feature. One idea would be:
You can even have a Diff of saved changes displayed in real time before confirming the upgrade or after the Diff is generated to be analyzed, especially good for improvements that make changes to Opencart's Core or Visual. A good example of this is Phpstorm Deploy, which allows you to see the differences between each file or system, such as WinDiff and of course Git itself, before an Upload.
Perhaps a backup of the tables may be made first.
It can also be studied how it is done in other systems and of course in IDEs such as Phpstorm and Visual Studio which have the ability to install, remove and update extensions. In addition to upgrading modules, it is also good to have Opencart upgraded to new versions very mature. |
Beta Was this translation helpful? Give feedback.
-
Uninstalling a module to update it loses all its settings.
Beta Was this translation helpful? Give feedback.
All reactions