This project is not covered by Drupal’s security advisory policy.

Migrate Drupal is a helper module to help with the migration of Drupal sites (e.g. Drupal 5 -> Drupal 6), when using the migrate module. Specifically (at the moment) for filefields.

** Currently requires Migrate Extra to be patched with #731992: multi-value filefields **

Why?

The migrate module rocks, but it has problems with many to many relationships, like nodes to files. As Drupal to Drupal conversions are fairly common, we think this is a use case worth simplifying.

Approach

As we know the structure of a Drupal database, we can use that to make assumptions about how the tables are arranged and therefore make it MUCH simpler to migrate.

TODO

  • GUI

Configuration

There is no GUI (yet), so its all in code, you have to do 3 things to set up. Currently it requires a patch to migrate extras #731992: multi-value filefields.

  1. NODE_MIGRATE_FILE_PATH
    This is a path from your site root, to the folder where your keeping the old files directory. Note, it expects the files to be in a folder called files e.g.
    NODE_MIGRATE_FILE_PATH . 'files/images/foobar.jpg'
  2. NODE_MIGRATE_DEFAULT_DB / NODE_MIGRATE_OLD_DB
    The names used for the databases in settings.php
  3. The node_migrate_field_mappings() function This is where the good stuff happens, its a structured array as follows.
    $mappings[field_type][field_name_on_new_site][X]
                                                  |- [table] = table in old db
                                                  |- [col] = data column (e.g. the fid)
    

    There is a sample in the module itself.

Required Modules:

Created by OpenlyConnected

Project information

  • caution Seeking new maintainer
    The current maintainers are looking for new people to take ownership.
  • caution No further development
    No longer developed by its maintainers.
  • Created by a_c_m on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases