Drupal 6 到 7 迁移 [英] Drupal 6 To 7 Migration

查看:21
本文介绍了Drupal 6 到 7 迁移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个用 drupal 6 编写的 drupal 站点.我们知道我们必须为 drupal 7 重写它(大部分)

We have a drupal site written in drupal 6. We know we will have to rewrite it for drupal 7 (mostly)

但重要的是迁移数据.CCK migrate 只能迁移大约 90% 的字段.

But the big part is migrating the data. CCK migrate was only able to migrate about 90% of the fields.

我正在寻找一种将 drupal 6 数据迁移到 drupal 7 的干净方法.

I am looking for a clean way to migrate the drupal 6 data to drupal 7.

我们使用 content_multigroup 作为一个模块,它基本上就像一个字段集合...如何迁移?

We used content_multigroup as a module which is basically like a field collection...How would that be migrated?

我正在寻找一些通用策略...我正在考虑引导 drupal 7,只针对 drupal 6 数据库编写查询并保存节点.

I am looking for some general strategies...I am thinking of bootstrapping drupal 7 and just write queries against the drupal 6 database and save nodes.

推荐答案

将 Drupal6 升级到 Drupal7

Upgrade Drupal6 to Drupal7

*注:在将站点的测试副本应用到您的实时站点之前,尝试对其进行更新或升级是明智的.即使是很小的更新也可能导致您网站的行为发生变化.

*Notes: It is wise to try an update or upgrade on a test copy of your site before applying it to your live site. Even minor updates can cause your site's behavior to change.

第 1 步:

Make note of non-core drupal modules(no need drupal core modules) and search if that all modules are available in drupal 7. If the modules are not available, then search "is there any alternate module for drupal 7". Make sure of it. (*step 1 is important)

第 2 步:

Disable all non-core module. 

Drush:      drush pm-disable `drush pm-list --no-core --type=module –pipe`

第 3 步:

Change the default theme as "Garland".

Drush:      drush vset theme_default garland, drush vset admin_theme garland

第 4 步:

Update the drupal6.

Drush:      drush up drupal

第 5 步:

Dump the DataBase.

Drush:      drush sql-dump > /path-to-dump/my-sql-dump-file-name.sql
Terminal:   mysqldump -u [username] -p [database name] > [database name].sql

第 6 步:

Download the latest Drupal7.

Drush:      drush dl drupal --select`option to select the version`

第 7 步:

Copy "files" folder from old instance(Drupal6) to new instance(Drupal7) and change the folder permissions.

第 8 步:

Import the dumped DB to new instance.

Drush:  (drush sql-drop, drush sql-cli < /path-of-dump/my-sql-dump-file-name.sql)
Terminal:   mysql -u [username] -p newdatabase < [database name].sql

第 9 步:

Go to Drupal Root > sites > default > settings.php and change into $update_free_access to TRUE in the settings file and then run update.php.

第 10 步:

Download all the contributed modules : include `views and views related modules`.  

第 11 步:

Must download Content Construction Kit (CCK) module. Enable the CCK, Content Migrate modules.

Drush:      drush dl cck, drush en cck

Go to "Admin-Structure > Migrate fields".

第 12 步:

In that Migrate fields,



After enable click "Migrate fields" in "Available fields" the fields are come under the "Converted Fields". Once again run "update.php".

*参考:https://drupal.org/update/themes/6/7

这篇关于Drupal 6 到 7 迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆