Related to main issue for the d7 upgrade guide: http://drupal.org/node/536854

Need to write up separate upgrade guide pages for the cck > field migration (upgrade issue: #781088: Updating CCK Fields and Data from D6 to D7) and also for all the other contrib to core migrations which seemingly may end up in a helper module.

Comments

uNeedStuff’s picture

imho until this gets completely fleshed out no one other then someone who is Drupal knowledgeable can attempt an upgrade, the information that is available isn't enough to actually get a site up and running.

arianek’s picture

@uneedstuff the upgrade path for this isn't finished yet, which is why the docs don't exist. you can follow progress for that on #781088: Updating CCK Fields and Data from D6 to D7 - the docs will follow this being completed.

arianek’s picture

some good notes on the cck > field part here: http://drupal.org/node/536854#comment-4091266

arianek’s picture

Priority: Major » Critical

Moving to critical as the likeliness of folks doing migrations increases...

arianek’s picture

Title: D7 contrib into core upgrade docs » D6 CCK to D7 core field migration docs
Issue tags: +Sprint: April 2011

Changing title - want to focus on the CCK to FIeld part first, then we'll see what's left.

bayousoft’s picture

(reposted to keep everything organized for this issue)

Correct me if I am wrong but this is the existing documentation for CCK > Fields: from http://drupal.org/node/570162

If you were using CCK (and perhaps additional modules) to create fields for your content types, you will need to upgrade the data in those fields as a separate step. Download the Drupal 7 CCK module, and turn on Content Migration. Go to Structure > Migrate Fields or http://example/com/admin/structure/content_migrate for a page to walk you through the migration process. There are now several types of fields in core, but not every type. You might need to download Drupal 7 versions of contributed modules to support other types of fields. (For example, the new References module handles node and user reference fields.)
Do we want to: a) first follow the process at a basic level (with just CCK enabled) and confirm that it works b) follow the same process with other popular CCK contrib modules (i.e. imagefield) enabled

How far down the rabbit hole do we go with this? :)

bayousoft’s picture

(repost)

That chunk is copied straight from that page, seems to be the entirety of the official cck > fields documentation right now.

Do you or someone else have to create the page? Do I write offline and forward it to you for approval?

bayousoft’s picture

thx arianek, sorry for all the questions but I would rather do it as right as I can the first time

arianek’s picture

Hi again :) definitely go for it and write up the page, then post it as a child page. Then you can set this issue to "needs review" and post a link to the page you added. Or if you want a review beforehand, you can post the content here first.

bayousoft’s picture

Hope to post at least the beginning something by end of day. Working on it now.

bayousoft’s picture

Please take a look at this beginning snippet. I want to make sure I am on the right track.

Content Construction Kit (CCK) to Fields Migration Steps:

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 separate dedicated 7.x modules. Node reference and user reference now require the References (drupal.org/project/references) module. Content permissions require the Field Permissions module (drupal.org/project/field_permissions). Field Groups require the Field Group (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. (More information on upgrading from Drupal 6 to Drupal 7.)

Upgrade Steps

  1. Download latest 7.x CCK module


    After upgrading to Drupal 7 download the latest 7.x CCK module version (currently 7.x-2.x-dev tar.gz or zip file (drupal.org/CCK). Typically this will be placed in your sites/all/modules or sites/yoursitehere.com/modules directory.


    On a typical Unix/Linux command line use the following commands to download and extract:

    wget http://ftp.drupal.org/files/projects/cck-7.x-2.x-dev.tar.gz

    tar -zxvf cck-7.x-2.x-dev.tar.gz

    If you do not have command line access to your server, download the archive using your web browser, extract it, and then use an FTP client to upload the files to your sites/all/modules or sites/yoursitehere.com/modules directory.

  2. Enable the CCK Content Migrate module


    Browse to http://yoursitehere.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.


  3. ...
arianek’s picture

just scheduled a tweet to go out tomorrow morning to try and find a reviewer to follow this issue - looking good so far!

bayousoft’s picture

Assigned: Unassigned » bayousoft
Carolyn’s picture

This looks like a good start! Minor style tweaks can be made once it's in the wiki. Here's a few little things I would change:

Make all project references links, and remove "(currently 7.x-2.x-dev tar.gz or zip file (drupal.org/CCK)"

After upgrading to Drupal 7 download the latest 7.x CCK -> After upgrading to Drupal 7, download the latest 7.x CCK [add comma]

new separate dedicated 7.x modules -> new, dedicated 7.x contrib modules

eliza411’s picture

I had to try this out to see if I meant what I was going to suggest. I like being able to skim for the module names, so I'd suggest highlighting that. I also place http:// in front of all the drupal.org addresses so they'd become automatically clickable, and added a comma or two.

Content Construction Kit (CCK) to Fields Migration Steps:

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.

The following instructions describe the steps necessary to migrate CCK for a site that was upgraded from Drupal 6 to Drupal 7. (More information on upgrading from Drupal 6 to Drupal 7.)

Upgrade Steps

  1. Download latest 7.x CCK module


    After upgrading to Drupal 7, download the latest 7.x CCK module version (http://drupal.org/CCK). Typically this will be placed in your sites/all/modules or sites/yoursitehere.com/modules directory.


    On a typical Unix/Linux command line, use the following commands to download and extract:

    wget http://ftp.drupal.org/files/projects/cck-7.x-2.x-dev.tar.gz

    tar -zxvf cck-7.x-2.x-dev.tar.gz

    If you do not have command line access to your server, download the archive using your web browser, extract it, and then use an FTP client to upload the files to your sites/all/modules or sites/yoursitehere.com/modules directory.

  2. Enable the CCK Content Migrate module


    Browse to http://yoursitehere.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.


  3. ...
arianek’s picture

just rediscovered some possibly relevant notes on another issue http://drupal.org/node/536854#comment-4091266

bayousoft’s picture

Feedback please.


Content Construction Kit (CCK) to Fields Migration Steps:

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.

The following instructions describe the steps necessary to migrate CCK for a site that was upgraded from Drupal 6 to Drupal 7. (More information on upgrading from Drupal 6 to Drupal 7.)

Upgrade Steps

  1. Download latest 7.x CCK module

    After upgrading to Drupal 7, download the latest 7.x CCK module version (http://drupal.org/CCK). Typically this will be placed in your sites/all/modules or sites/yoursitehere.com/modules directory.

    On a typical Unix/Linux command line, use the following commands to download and extract:

    wget http://ftp.drupal.org/files/projects/cck-7.x-2.x-dev.tar.gz

    tar -zxvf cck-7.x-2.x-dev.tar.gz

    If you do not have command line access to your server, download the archive using your web browser, extract it, and then use an FTP client to upload the files to your sites/all/modules or sites/yoursitehere.com/modules directory.

  2. Enable the CCK Content Migrate module

    Browse to http://yoursitehere.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.


  3. Browse to the Migrate fields page


    Browse to Structure > Migrate Fields or http://yoursitehere.com/admin/structure/content_migrate for a page to walk you through the migration process.


  4. 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.

  5. Download additional modules if necessary

    • References module (http://drupal.org/project/references). Typically this will be placed in your sites/all/modules or sites/yoursitehere.com/modules directory. On a typical Unix/Linux command line, use the following commands to download and extract:

      wget http://ftp.drupal.org/files/projects/references-7.x-2.x-dev.tar.gz

      tar -zxvf references-7.x-2.x-dev.tar.gz

      If you do not have command line access to your server, download the archive using your web browser, extract it, and then use an FTP client to upload the files to your sites/all/modules or sites/yoursitehere.com/modules directory.

    • Field Permissions module (http://drupal.org/project/field_permissions). Typically this will be placed in your sites/all/modules or sites/yoursitehere.com/modules directory. On a typical Unix/Linux command line, use the following commands to download and extract:

      wget http://ftp.drupal.org/files/projects/field_permissions-7.x-1.0-alpha1.ta...

      tar -zxvf field_permissions-7.x-1.0-alpha1.tar.gz

      If you do not have command line access to your server, download the archive using your web browser, extract it, and then use an FTP client to upload the files to your sites/all/modules or sites/yoursitehere.com/modules directory.

    • Field Group module (http://drupal.org/project/field_group). Typically this will be placed in your sites/all/modules or sites/yoursitehere.com/modules directory. On a typical Unix/Linux command line, use the following commands to download and extract:

      wget http://ftp.drupal.org/files/projects/field_group-7.x-1.0-rc2.tar.gz

      tar -zxvf field_group-7.x-1.0-rc2.tar.gz

      If you do not have command line access to your server, download the archive using your web browser, extract it, and then use an FTP client to upload the files to your sites/all/modules or sites/yoursitehere.com/modules directory.

  6. Enable additional modules if necessary



    Browse to http://yoursitehere.com/admin/modules and check all applicable boxes in the Fields section. Remember to press save configuration at the bottom of the screen.
  7. Migrate fields

    Browse to Structure > Migrate Fields or http://yoursitehere.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.

wmostrey’s picture

The guide itself is great. Adhering to the documentation style guide I would replace the yoursite.com references with example.com, and remove the wget / tar zxvf commands. Those command can be found in more generic documentation.

Apart from that, it's ready to go!

RobLoach’s picture

Looks great!!! Well done on the write up. The Migrate module is also a great resource for more advanced migrations.

There isn't any upgrade code in the Field Permissions module, but it should be fine as it uses user_access().

arianek’s picture

Status: Active » Reviewed & tested by the community

Alrighty - looks like two votes of confidence from reviewers - someone want to create this as a new child page to http://drupal.org/node/570162 and clearly link it from step #14 with something like "For more detailed instructions on this, read [link/page title]" then mark as fixed?

wmostrey’s picture

Status: Reviewed & tested by the community » Fixed
arianek’s picture

HECK YES!!! thanks :D

Status: Fixed » Closed (fixed)
Issue tags: -d7docs, -upgrade guide, -Sprint: April 2011

Automatically closed -- issue fixed for 2 weeks with no activity.