Hello devs,
I'm currently trying to find the best approach to automatically upgrade an
XWS instance workspaces when upgrading the XWS version. By that, I mean
adding new pages to existing workspaces for example.
I see at least two possible approaches :
* On display of the workspace, we check that the considered pages are
present, and if not either we automatically create them, either we offer a
big button to "upgrade" the workspace. (the test could be done in a skin
template, so that any page would trigger the upgrade)
* On plugin init, we search for all workspaces and upgrade the ones in
need. And we could have a marker once the upgrade is done, not to execute
the query at each init.
WDYT ? Are there other approaches I'm missing ?
Regards,
Jerome.