我们有一个用Drupal6编写的drupal站点,我们知道我们必须为Drupal7重写它(主要是)
但最大的部分是迁移数据。CCK migrate只能迁移大约90%的字段。
我正在寻找一种干净的方式将Drupal6数据迁移到Drupal7。
我们使用content_multigroup作为一个模块,它基本上就像一个字段collection...How,它会被迁移吗?
我正在寻找一些通用的策略……我正在考虑引导Drupal7,只编写对Drupal6数据库和保存节点的查询。
发布于 2012-11-13 21:38:54
自从这个问题被提出以来,Migrate模块发生了很大的变化。此外,Migrate D2D module也是从Drupal6迁移到Drupal7的一个很好的起点。
查看documentation,你应该会对如何去做有一个很好的想法。
诚然,Migrate模块似乎有一个陡峭的学习曲线,但使用Migrate D2D示例,您应该足够快地掌握速度。
发布于 2015-06-25 18:16:40
将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步骤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
发布于 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最终能够完成它的所有工作。
https://stackoverflow.com/questions/7794331
复制相似问题