After spending more time than I'd like writing code to script changes to xml_storage versions for ConfigItems... including reading from and writing to... taking input as something human readable/writeable and making the output human readable.... I have to ask, why xml_storage for custom fields/versions?
Seems to me it would be far easier to have a table to define your custom fields (id, name, parent_id, type), with a join table to join fields to a class, then write versions to a table with (id, config_item_id, [ci_field]).... I realize this kind of how versions are done in xml_storage, but why the format that it's currently in (tagkeys, arrays with nils at index 0, etc).
Why xml_storage?
Re: Why xml_storage?
XML is more flexibel and you'll have a "ontainer" with all the data from one CI version
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 11
- Joined: 15 Sep 2011, 23:42
- Znuny Version: 3.0.10
- Real Name: Brian Goff
Re: Why xml_storage?
But wouldn't you just write a converter to go from a relational table structure to XML?