Drupal 6 Drupal6到7迁移

Drupal 6 Drupal6到7迁移,drupal-6,drupal-7,Drupal 6,Drupal 7,我们有一个用Drupal6编写的drupal站点。我们知道我们将不得不为Drupal7重写它(大部分) 但最重要的是迁移数据。CCK migrate只能迁移大约90%的字段 我正在寻找一种干净的方法将Drupal6数据迁移到Drupal7 我们使用content_multigroup作为一个模块,它基本上就像一个字段集合……如何迁移 我正在寻找一些通用策略……我正在考虑引导drupal 7,只需编写针对drupal 6数据库和保存节点的查询。您有没有看过(由于它的名称,它作为一种数据迁移工具的良

我们有一个用Drupal6编写的drupal站点。我们知道我们将不得不为Drupal7重写它(大部分)

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

我正在寻找一种干净的方法将Drupal6数据迁移到Drupal7

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

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

您有没有看过(由于它的名称,它作为一种数据迁移工具的良好用途经常被忽视)

你在处理什么样的领域

如果失败了,并且由于您正在寻找一般策略,我将说以下几点:我鼓励您尽可能多地使用API,而不是直接查询

根据我自己的经验,在这两种选择中:

a) 让脚本在D6下运行并通过SQL推送到D7DB 或 b) 让脚本在D7下运行并通过SQL拉入D6DB

我会选择b)以确保node_save最终能够完成它的所有工作。

自提出这个问题以来,该模块已经发展了很多。这也是Drupal6到Drupal7迁移的一个很好的起点

检查一下,你应该会对如何去做有一个很好的想法


诚然,Migrate模块似乎有一个陡峭的学习曲线,但使用Migrate D2D示例,您应该足够快地掌握速度。

将Drupal6升级到Drupal7

对所有文件、目录和数据库进行完整备份 *注: 明智的做法是,在将站点的测试副本应用到实时站点之前,尝试对其进行更新或升级。即使是很小的更新也会导致站点的行为发生变化

步骤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
步骤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

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