Why xml_storage?

English! place to talk about development, programming and coding
Post Reply
cpuguy83
Znuny newbie
Posts: 11
Joined: 15 Sep 2011, 23:42
Znuny Version: 3.0.10
Real Name: Brian Goff

Why xml_storage?

Post by cpuguy83 »

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).
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Why xml_storage?

Post by jojo »

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
cpuguy83
Znuny newbie
Posts: 11
Joined: 15 Sep 2011, 23:42
Znuny Version: 3.0.10
Real Name: Brian Goff

Re: Why xml_storage?

Post by cpuguy83 »

But wouldn't you just write a converter to go from a relational table structure to XML?
Post Reply