Dyllon |
|
---|---|
My question is: when writing a plugin for siena, you have plugin.install.sql, and plugin.uninstall.sql. is there a way that you can have sql files allocated for each version change? example: in plugin.setup.php i have : Version=1.0 if i make changes to the sql file, and i change it to Version=1.1 rather than uninstalling the plugin and losing everything, is it possible to have a seperate sql file ran when the user clicks update? We are what we repeatedly do. Excellence then, is not an act, but a habit.
|
Trustmaster |
|
---|---|
Patch files are supported, file name format is:
May the Source be with you!
|
Dyllon |
|
---|---|
fantastic! thank you. Added 1 days later: another question, say if it was upgraded again (1.2), although someone still has 1.0 installed.. will it run both sql files in consequent order? We are what we repeatedly do. Excellence then, is not an act, but a habit.
|
|
Отредактировано: Dyllon (12.03.2011 04:55, 14 лет назад) |
Trustmaster |
|
---|---|
Yes, it will apply all patches between installed and latest version in their version order. May the Source be with you!
|