oana06 Posted March 16, 2017 Share Posted March 16, 2017 Hello everyone, I have some doubts about the auto-update functionality. I implemented it for the module I'm developing and test it locally but I don't know the exact behaviour when a new module is in the marketplace. So if a new module release appears in the marketplace the user will see an update button and if he clicks it this will download the new module from marketplace and then run the scripts from the upgrade folder. But the download means that it merges what files you have locally with what it downloads from marketplace? Because for example if you want to refactor your module, delete some classes or something like this I would expect something like removing the local version of the module and upload the one from marketplace and then run the upgrade scripts. Could some tell me the actual behaviour? I did some research and haven't found anything on this. Thank you! Link to comment Share on other sites More sharing options...
prosci8 Posted March 16, 2017 Share Posted March 16, 2017 You are right in that the download "merges" files, but existing files with the same name will be overwritten. So basically, your module file will be overwritten with the new module file that you've refactored. No need to remove it first. Your update scripts must then take care of db changes, add/delete/move files, etc. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now