[daisy] Safe way to share Field, Part and Document Types between instances of Daisy 1.5

Paul Focke paul at outerthought.org
Fri Dec 1 01:27:34 CST 2006


On Thursday 30 November 2006 18:15, Robert Cecil wrote:
> I know that Daisy 2.0 has a full import/export tool to do this. But,
> in version 1.5 is there a safe way export any Fields, Parts and Doc
> Types that have been defined, lets say in a development instance, and
> import them (using standard SQL means) into a new fresh instance of
> Daisy 1.5 (e.g. deployment)? I think I can identify the right tables,
> but then again, I read "do not directly touch the database" somewhere
> in the docs... :)
>
> Thanks
> Rob Cecil

Hi,

Indeed it isn't a good idea to mess about in the database.  Daisy 1.5 has a 
schema uploader (daisy-schema-uploader), which can be found in the install 
directory of a binary install.  What this tool does is read an xml file 
containing the definition of the repository and then it updates the specified 
repository.  Actually it is used during the installation of daisy wiki to 
create the default documenttypes.

The format of the xml file is similar to the one found in import/export tool.  
Similar but not the same :-/ . An example of the format can be found here 
http://svn.cocoondev.org/viewsvn/tags/RELEASE_1_5_0/daisy/install/src/java/org/outerj/daisy/install/daisywiki_schema.xml?rev=3279&view=markup

This would mean you'd have to create this file by hand and then upload it, but 
since you want to export the schema from an existing repository this might 
not be exactly what you're looking for.

When looking to answer your question I couldn't find any mention of this tool 
in the daisy docs, maybe I should look in mentioning the 
daisy-schema-uploader there.

Paul


More information about the daisy mailing list