数据迁移后在Drupal 6中转换节点类型有哪些风险?

发布于 2024-12-09 00:48:43 字数 241 浏览 0 评论 0原文

我最近为客户从旧站点到新站点进行了数据迁移,后来我发现客户改变了主意,并决定他们现在希望博客节点成为讨论节点(新站点中的两种不同的内容类型) Drupal 6 系统)。

我现在打算做的是将新的博客节点更改为“讨论”类型。据我所知,这就像更改节点中的类型参数并保存它一样简单(当然以编程方式执行此操作)。这些节点只是来自 D4.7 站点的标题和正文节点。

因为我只关心正文和标题,所以这样做有任何风险吗?

谢谢, 帕特里克

I recently did a data migration from an old site to a new site for a client and afterwards I come to find that the client has changed their minds and decided they now want the blog nodes to become discussion nodes (two distinct content types in the new Drupal 6 system).

What I intend to do now is change the new blog nodes over to the type "discussion". As far as I can tell this is as simple as changing the type parameter in the node and saving it (doing this programmatically of course). These nodes are simply title and body nodes from a D4.7 site.

Are there any risks in doing this since all I care about are the body and title?

Thanks,
Patrick

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夏花。依旧 2024-12-16 00:48:43

如果您将 CCK 字段附加到博客类型(并且您在这些字段中有数据),那么您可能会遇到一些不一致/错误,但除此之外,您应该绝对没问题。

老实说,我通常只是直接在 node 表中更改相关节点的 type 列,而且我从未遇到过任何问题。

If you've got CCK fields attached to the blog type (and you have data in those fields) then you might get some inconsistencies/errors but other than that you should be absolutely fine.

I usually just change the type column directly in the node table for the nodes in question to be honest and I've never had any problems.

空城旧梦 2024-12-16 00:48:43

如果您希望采用“无代码”方法将节点转换为不同类型,那么我建议:http: //drupal.org/project/node_convert

使用该模块应该是无风险的,因为所讨论的节点类型非常基本。我已经多次使用该模块,它可以很好地处理简单和复杂的节点类型转换。在过去的用例中,它一直在处理节点/用户引用和文件字段。

我从未尝试过更改“节点”表中的“类型”列值,这听起来很有趣,但同时有点可怕......

If you would like a 'code-less' approach to convert the nodes to a different type, then I would recommend: http://drupal.org/project/node_convert

Using that module should be risk-free since the node types in question are very basic. I have used the module multiple times now and it works well with both simple and complex node type conversions. It has struggled with node/user reference and filefield in past use cases.

I have never tried changing the 'type' column values in the 'node' table, that sounds interesting and a little scary at the same time...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文