Xaraya to Drupal Migration Script
Julia Biro
Using some features from the following script(http://drupal.org/node/105308) I managed to port
a Xaraya 1.4 to Drupal 6.13.
It does the following:
- import of users
- import of articles and comments
- import of forums and comments
- import of content types
- import of vocabularies and terms
- import of files
The first thing I’ve done was to eliminate the sequences table, which is deprecated starting from Drupal version 4.
Managing categories:
I’ve used the xaraya categories with parent id equal to 0 as Content Types and Vocabularies
and inserted all the other as terms associated with the vocabulary.
The term hierachy is created by running a script on the term_hierarchy table
setting parent_id 0 for the first child and the original parent_id for the next ones.
Managing files and images:
Inserting them into the ‘files’ table is not enought, the FileField
and ImageField modules installation is mandatory in order to associate an field with an node.(this part is not implemented)
In order to mentain the relationships safe I had to use the original id’s in all tables .
Posted in Drupal |
No Comments »
