Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Migrating custom fields from Drupal 6

From: Drupal 7: Reporting and Visualizing Data

Video: Migrating custom fields from Drupal 6

I'm going to guess that some of you watching this course already have experience with Drupal 6. Maybe you have a Drupal 6 site already built, and you want to see how to move it from the old data storage model to Drupal 7's new one. If so, this video is for you. It'll be quite different from all the others in this course, because we'll start off with the same employee database we've been seeing, but this time in a Drupal 6 site. I'll then show you what it looks like after a standard upgrade to Drupal 7, but you'll notice that none of our custom fields appear. But don't worry; we'll finally do some special procedures to bring everything up to date.

Migrating custom fields from Drupal 6

I'm going to guess that some of you watching this course already have experience with Drupal 6. Maybe you have a Drupal 6 site already built, and you want to see how to move it from the old data storage model to Drupal 7's new one. If so, this video is for you. It'll be quite different from all the others in this course, because we'll start off with the same employee database we've been seeing, but this time in a Drupal 6 site. I'll then show you what it looks like after a standard upgrade to Drupal 7, but you'll notice that none of our custom fields appear. But don't worry; we'll finally do some special procedures to bring everything up to date.

There are no exercise files for this video, because you'd have to go through quite a lot of trouble to follow along at home. But it should be clear just from watching. First, here's our Drupal 6 site and you'll notice it looks sort of familiar. When you click on a title, we get the data for any one of our employees and so forth. We've simplified it a little bit by adding only a few fields. Now here's the Drupal 7 equivalent. But if you click on one of these titles, you'll see that actually there are no other fields, it's only the title. Don't worry; we'll be exposing all the other data.

It did come over in the migration, but it's just not showing up yet, because there's different data storage models between Drupal 6 and Drupal 7. Incidentally, the way that I brought this over was I simply created a brand-new copy of Drupal 7 and then imported the Drupal 6 database. Then I ran Drupal's update.php script. In order to bring it up to date, we're going to go up to Structure, and Content types. Then we'll take a look at our Employee Content type and manage fields. And indeed we don't have any of the fields that we expect.

We have only the title, none of the custom ones that we created. In order to convert it over, we'll look at some instructions that I found on drupal.org. The location is drupal.org/ node/1144136. And there it is. The important part of this page is this Upgrade Steps. And the most crucial part of that is that you need a certain module, the CCK module. You might remember that that's how we actually got those custom fields into Drupal 6. Well, in order to do the migration, you also need it in Drupal 7. So we'll go to it.

It's at drupal.org/project/cck. I'll Ctrl+Click to open that in a new tab. I scroll down, and as usual, I download the latest version. Notice that for Drupal 7 there's only a Development release. Well, you take what you can get, so I'll take the .gz file, copy its link location, go back to my site, and install it in the usual way. Click Modules, Install new module, paste, and Install, and then enable the correct parts of the module.

As we scroll down on the page, we see a CCK group. It includes CCK, but also this thing, Content Migrate. That's the part that will help us, and Save configuration. The next thing to do is to go to Structure and Migrate fields. We want to migrate all of our fields, so I'll all click this check box at the top, and then click Migrate selected fields. This may take a while.

Now if we go back up to our Content type by clicking Structure, Content types, and manage fields next to Employee, we see that our fields are there. If we go back to the front page of our site and we click on any one of these, we're all good once again. So those are the basic steps. There are several special cases you need to know if you're converting a complex Drupal 6 site. For example, you'll need extra modules to migrate reference fields, field-based content permissions, or field groups. The details once again are on this page on drupal.org, at drupal.org/node/1144136.

Show transcript

This video is part of

Image for Drupal 7: Reporting and Visualizing Data
Drupal 7: Reporting and Visualizing Data

44 video lessons · 6770 viewers

Tom Geller
Author

 
Expand all | Collapse all
  1. 13m 50s
    1. Welcome
      50s
    2. What you need to know
      4m 49s
    3. Using the exercise files
      8m 11s
  2. 12m 58s
    1. A yoga studio
      3m 18s
    2. A national organization
      2m 51s
    3. An entertainment company
      4m 3s
    4. An organization with hyperlocal branches
      2m 46s
  3. 40m 49s
    1. Planning your site's data structure
      3m 31s
    2. Creating record templates
      5m 40s
    3. Understanding Drupal 7's data-template model (entities)
      4m 27s
    4. Creating categories using two methods
      6m 14s
    5. Creating unusual field types
      6m 38s
    6. Reusing and grouping fields
      6m 25s
    7. Looking at Drupal's database
      3m 56s
    8. Migrating custom fields from Drupal 6
      3m 58s
  4. 20m 46s
    1. Connecting two fields using references
      5m 35s
    2. Importing data using Feeds
      8m 48s
    3. Changing the appearances of fields
      6m 23s
  5. 53m 15s
    1. Understanding why views are useful
      5m 1s
    2. Learning from built-in views
      5m 52s
    3. Creating and deleting a simple view
      5m 41s
    4. Diving into the Views interface
      8m 48s
    5. Surveying field types
      6m 16s
    6. Adjusting the settings of individual fields
      5m 31s
    7. Sorting and filtering data
      8m 11s
    8. Changing Views' administrative options
      7m 55s
  6. 33m 33s
    1. Varying how a view appears in different displays
      10m 10s
    2. Formatting views with grid, list, table, and jump menu appearances
      6m 43s
    3. Rewriting field output for interesting results
      4m 21s
    4. Creating multipart views using attachments
      6m 8s
    5. Styling the output of views
      6m 11s
  7. 33m 56s
    1. Importing and exporting views
      6m 21s
    2. Controlling access to data
      6m 44s
    3. Adding dynamic filters to views
      5m 41s
    4. Extending views with relationships
      6m 24s
    5. Improving data administration with Views Bulk Operations
      8m 46s
  8. 29m 43s
    1. Understanding locational data
      4m 43s
    2. Setting up the Location module
      9m 42s
    3. Displaying basic maps with the GMap module
      8m 37s
    4. Displaying custom maps
      6m 41s
  9. 23m 50s
    1. Exporting data in simple text form
      7m 4s
    2. Adding dates and calendars
      8m 32s
    3. Displaying content in a slideshow
      8m 14s
  10. 1m 20s
    1. Next steps
      1m 20s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Drupal 7: Reporting and Visualizing Data.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.