Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Configuration setting migration #3394

jossy ·
Hello!

We developed a plugin for QB and need to change some configuration setting introduced there. But when I change the type of one property it fails with some exceptions. Is there a way to tell QB that on deployment of the new plugin version it should migrate the settings?

Thanks
  • replies 4
  • views 3322
  • stars 0
robinshen ADMIN ·
You need to add a migrate method in the plugin setting class as described here:
http://wiki.pmease.com/display/QB60/Migrate+Plugin+Data

This migrate method converts original XML representation of the setting to a valid XML representation of current version. You may check old and new XML representation of your setting by checking relevant section in configuration.xml of both backups
jossy ·
Ah. Thank you. I missed that one.
jossy ·
Another thing: I read the documentation carefully and only plugin setting, step and repositories are stated there to be migrated via such methods, but no word about configuration setting. Does this work too?
robinshen ADMIN ·
Yes it will also be migrated the same way as long as the configuration setting is contributed from your plugin.