Open Atrium Migrate

Component ID

2201363

Component name

Open Atrium Migrate

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

546

Component created

Component changed

Component body

An experimental module for migrating Open Atrium 1.x sites to Open Atrium 2.x.

So, first of all the big warning: PLEASE DON'T USE THIS IN PRODUCTION! This is only for other folks looking to experiment and do development for now.

But, if you did want to test it, here is how you'd do that:

  1. Install a fresh OA 2.x site (tested to work with OA 2.13) on the same server as your OA 1.x site
  2. Clone my oa_migrate module:
    git clone --branch 7.x-2.x http://git.drupal.org/project/oa_migrate.git
    cd oa_migrate
    
  3. Install migrate 2.x-dev, migrate_d2d 2.x-dev and apply this patch #1834016: Add support for migrating node revisions. Or you can just use the oa_migrate.make file provided:
    drush make --no-core oa_migrate.make
    drush en -y migrate migrate_d2d
    
  4. Install the oa_migrate module:
    drush en -y oa_migrate
    
  5. In the settings.php for you OA 2.x site, add database and files information about your OA 1.x site, for example:
    $databases['legacy']['default'] = array(
      'driver' => 'mysql',
      'database' => 'oa1database',
      'username' => 'oa1username',
      'password' => 'oa1password',
      'host' => 'localhost',
      'port' => '3306',
      'prefix' => '',
    );
    
    $conf['oa_migrate_register_migrations'] = array(
      'legacy' => array(
        'name' => 'OA1 -> OA2 migration for legacy site',
        'database' => 'legacy',
        'files_path' => '/var/aegir/platforms/openatrium-1.7/sites/default/files/',
      ),
    );
    
  6. Run all migrations via the Migrate UI or drush, for example:
    drush cc all
    drush mi --all
    
  7. Check out your OA 2.x site and see how the users, Spaces and Notebook content from your OA 1.x site is now present!

If you want to collaborate on extending this code, please open issues with patches in the issue queue for my sandbox project:

https://drupal.org/project/issues/oa_migrate?categories=All