Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Migrating openscholar from drupal 6 to drupal 7

sagotsky edited this page Mar 13, 2013 · 14 revisions

OpenScholar uses the Migrate module to import data from a drupal 6 installation to a drupal 7 one. The standard update.php upgrade path is not supported. Instead, we create a new d7 installation and copy data from the legacy database.

Setup

  1. This setup assumes you already have a working installation with d6 production data and files. If not, do that first.
  2. Install D7 with the openscholar profile.
  3. Edit D7's settings.php. Provide credentials to access the d6 database. (Example provided in link in step 4).
  4. In D7, enable os_migrate.
  5. Configure os_migrate (admin/config/openscholar/os_migrate).
    • Migration database uses the name of the database from step 2
    • Files directory is the path to your d6 installation. When migrating files, this will be prepended to the path in the files table.
  6. Save your changes. The admin page should let you know if it's unable to connect to the legacy db.

Migration

  • Migration can be performed from admin/content/migrate or command line via drush.
  • In theory you can migrate everything at once (check all tabs and import, or migrate-import --all) but there is a known bug in spaces overrides variables that prevents it from finishing, causing migrations that depend on space variables to fail to migrate. Once spaces overrides variables have migrated, you need to ignore dependencies when migration the spaces_overrides group or use --force in drush.
  • There will be notices, warnings, and errors (oh my!). There should not be any show stoppers (aside from the variables thing mentioned above).

Notes

  • OS Migration preserves user and node ids. If you created nodes and users before migrating, you'll have id collisions. Migrate first.

Further documentation (work in progress)

Known Issues

Upgrading Instructions

Development

Clone this wiki locally