6.x
Migrating data in Drupal 5 to 6 using Table Wizard and Migrate (Part 4 - Product Nodes)
Product nodes
So the next step is bringing in the product nodes. As I mentioned in the company node migrate post, I have some custom text fields with taxonomy terms in them, as well as a regular taxonomy, and a node reference field (for the company that makes the product).
The custom text fields' data and the regular taxonomy terms must get moved into new Content Taxonomy fields. The node reference must have its node id number updated to get the new company node id.
Moving imagecache presets to a module
Quick post to show you how to move your Drupal 6.x imagecache presets to a module. This is for imagecache-6.x-2.0-beta10 or higher.
Create your presets in Drupal. Once they're all done, go to the ImageCache list page and click the export link next to the first preset. Copy the code presented to you, and paste it into your module using a function called hook_imagecache_default_presets(). Add a return $presets at the end of the function and save the module.
Migrating data in Drupal 5 to 6 using Table Wizard and Migrate (Part 3 - Company Nodes)
After importing taxonomies and users, now I need to bring in the actual nodes. First thing to do is remove the primary key option from the node table's vid field. Remember, Table Wizard only works when the table has a single primary key.
Alright, so the things that need to be updated during the migrate are the taxonomy terms for each node, any node-reference fields (user-reference fields are fine as-is because we simply copied the existing user base to the new site), and our meta tags from the nodewords module.
Migrating data in Drupal 5 to 6 using Table Wizard and Migrate (Part 2 - Users & Profiles)
Well, it looks like the users are pretty simple to do. Just overwrite the Drupal 6 profile_fields, profile_values, role, users, and users_roles tables with the Drupal 5 ones. No need to do any importing (which would have been pretty complicated with all the profile values in there).
Couple of things to watch for though:
Migrating data in Drupal 5 to 6 using Table Wizard and Migrate (Part 1 - Taxonomies)
This will be the first in a few posts on how I am trying to move data in a series of Drupal 5 sites to one Drupal 6 site.
