首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Drupal 6到7的迁移

Drupal 6到7的迁移
EN

Stack Overflow用户
提问于 2011-10-17 21:17:52
回答 3查看 5.7K关注 0票数 3

我们有一个用Drupal6编写的drupal站点,我们知道我们必须为Drupal7重写它(主要是)

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

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

我们使用content_multigroup作为一个模块,它基本上就像一个字段collection...How,它会被迁移吗?

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

EN

回答 3

Stack Overflow用户

发布于 2012-11-13 21:38:54

自从这个问题被提出以来,Migrate模块发生了很大的变化。此外,Migrate D2D module也是从Drupal6迁移到Drupal7的一个很好的起点。

查看documentation,你应该会对如何去做有一个很好的想法。

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

票数 3
EN

Stack Overflow用户

发布于 2015-06-25 18:16:40

将Drupal6升级到Drupal7

对所有文件、目录和数据库进行完整备份

*注意:明智的做法是在站点的测试副本上尝试更新或升级,然后再将其应用到您的实时站点。即使是很小的更新也会导致站点的行为发生变化。

步骤1:

代码语言:javascript
复制
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步:

代码语言:javascript
复制
Disable all non-core module. 

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

第3步:

代码语言:javascript
复制
Change the default theme as “Garland”.

Drush:      drush vset theme_default garland, drush vset admin_theme garland

第4步:

代码语言:javascript
复制
Update the drupal6.

Drush:      drush up drupal

第5步:

代码语言:javascript
复制
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:

代码语言:javascript
复制
Download the latest Drupal7.

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

第7步:

代码语言:javascript
复制
Copy “files” folder from old instance(Drupal6) to new instance(Drupal7) and change the folder permissions.

第8步:

代码语言:javascript
复制
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:

代码语言:javascript
复制
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步:

代码语言:javascript
复制
Download all the contributed modules : include `views and views related modules`.  

第11步:

代码语言:javascript
复制
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步:

代码语言:javascript
复制
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

票数 3
EN

Stack Overflow用户

发布于 2011-11-23 07:36:05

您有没有看过http://drupal.org/project/feeds (因为它的名字,它经常以其作为数据迁移工具的良好用途而不为人所知)?

您处理的是什么类型的字段?

如果这样做失败了,而且您正在寻找通用的策略,我将这样说:我鼓励您尽可能多地使用API,而不是直接查询。

根据我自己的经验,在这两个选项中做出选择:

a)让脚本在D6下运行并通过SQL推送到D7 DB,或者b)让脚本在D7下运行并通过SQL拉到D6 DB。

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7794331

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档