Last updated May 26, 2011. Created by wmostrey on May 1, 2011.
Edited by ranavaibhav. Log in to edit this page.
Data must be migrated to upgrade Content Construction Kit (CCK) in Drupal 6 to Drupal 7 core fields. Much but not all of CCK functionality is now part of Drupal 7 core. Several features require the installation of new, dedicated 7.x modules.
- Node reference and user reference now require the References (http://drupal.org/project/references) module.
- Content permissions require the Field Permissions module (http://drupal.org/project/field_permissions).
- Field Groups require the Field Group (http://drupal.org/project/field_group) module.
The following instructions describe the steps necessary to migrate CCK for a site that was upgraded from Drupal 6 to Drupal 7. Learn more on upgrading from Drupal 6 to Drupal 7.
Upgrade Steps
- Download latest 7.x CCK module
After upgrading to Drupal 7, download the latest 7.x CCK module version (http://www.drupal.org/project/cck). Typically this will be placed in your sites/all/modules or sites/example.com/modules directory.
- Enable the CCK Content Migrate module
Browse to http://example.com/admin/modules and check the box next to Content Migrate in the CCK field group. Remember to press save configuration at the bottom of the screen.
- Browse to the Migrate fields page
Browse to Structure > Migrate Fields or http://example.com/admin/structure/content_migrate for a page to walk you through the migration process.
-
Download additional modules if necessary
Typically these will be placed in your sites/all/modules or sites/example.com/modules directory.
- References module (http://drupal.org/project/references).
- Field Permissions module (http://drupal.org/project/field_permissions). Typically this will be placed in your sites/all/modules or sites/example.com/modules directory.
- Field Group module (http://drupal.org/project/field_group). Typically this will be placed in your sites/all/modules or sites/example.com/modules directory.
- Enable additional modules if necessary
Browse to http://example.com/admin/modules and check all applicable boxes in the Fields section. Remember to press save configuration at the bottom of the screen.
- Migrate fields
The Migrate Fields page is divided into 3 sections:
Available fields- Fields that have not been migrated but are available for migration.
Converted fields- Fields that have already been converted. You can choose to roll them back if the conversion did not work correctly. Note that rolling fields back will completely destroy the new field tables. This operation cannot be undone!
Unavailable fields- Fields that cannot be migrated because some modules are missing. Download and install/enable any required modules listed in the Other information column of this section.
Browse to Structure > Migrate Fields or http://example.com/admin/structure/content_migrate.
Check the box next to all fields you would like to migrate in the Available fields section.
Press the Migrate selected fields button.
If the migration process is successful you should receive a message detailing that each field was created. All fields should now be listed in the Converted fields section of the page.