← Back to team overview

phpdevshell team mailing list archive

Re: [Question #210689]: Is there a more detailed tutorial for how to use the upgrade feature of a plugin

 

Question #210689 on PHPDevShell changed:
https://answers.launchpad.net/phpdevshell/+question/210689

    Status: Answered => Open

tad is still having a problem:
Okay so if I understand correctly(And please correct me where I'm wrong):
 lets say the update version is 2 and the current is 1
the current plugin file looks something like this(for simplicity):
<versionurl current=1></v url>
<install version=1>
</install>


The next thing that happens is it downloads the new files ->
It then replaces the old files with the new ones ->
Reads through the plugin config which looks something like this(for an example):
<install version=2>
Nothing here is ran because they already had a version installed but this needs to be kept up to date for fresh installs?
</install>
<upgrade version=1>
nothing here is ran because we already had version 1 installed?
<upgrade>
<upgrade version=2>
everything here is ran because the old version was version 1
</upgrade>
Now it updates the store versions and all is well

-- 
You received this question notification because you are a member of
PHPDevShell, which is an answer contact for PHPDevShell.