Looking for software experts?
Need an expert advice on software development? Need consulting work done in time and at high standards? Tremend has the right solution for you.

We can provide expertise in:
  •    » high traffic and complex content website infrastructures using Java, PHP or .NET. More here ...
  •    » mobile applications for iPhone, Android or J2ME. More here ...

For an enquiry, send an email to contact [at] tremend [dot] ro.

Xaraya to Drupal Migration Script

September 11th, 2009 by Julia Biro in Drupal

Using some functionalities from this script I managed to port
a Xaraya 1.4 installation to Drupal 6.13.

The script performs the following tasks:

  • imports users
  • imports articles and comments
  • imports forums and comments
  • imports content types
  • imports vocabularies and terms
  • imports files



The first thing I’ve done was to eliminate the sequences table, which is deprecated starting from Drupal version 4.

Next, when 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.

With regard to files and images, Inserting them into the ‘files’ table is not enought – the FileField
and ImageField Drupal modules are mandatory in order to associate a field with a node. (this is still work in progress)

One last note: in order to maintain database integrity, the original id-s must be used in all tables.

Click here to download the script

DZoneGoogle ReaderYahoo MessengerRedditEmailDelicious

Related posts

  • Drupal Commerce for ePayment module
    Inspired by Drupal philosophy of contributing code and modules for the community, we have released a module that provides ePayment support in Drupal Commerce. Available here. Just install the module,...
  • Taxonomy additions Drupal module
    Our first Drupal module: http://drupal.org/project/taxonomy_additions ads various additions to the core Taxonomy module. Meet Andrei (amateescu at tremend.ro) in Brussels at Drupal Developer Days 2011,...
  • How to move Drupal to a subdirectory and keep the links
    The usual way for Drupal is to have it live in the root of your web site. It's all nice if the only thing on your site is Drupal, but it gets very cluttered when you have other top-level directories. One...
  • Tremend 6 years
    Tremend is now 6 years old, a new year of projects and challenges. So what is new in this past year? We've extended our expertise in technologies such as Drupal and Grails. Published custom modules...
  • About the maturity of Apache Derby
    For those of you that didn't hear about it yet, Apache Derby is a Java relational database engine that can both run as a network server or embedded in a Java application. You might have encountered Derby...
.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.