简体   繁体   English

joomla 1.5-> 3.1使用SQL迁移

[英]joomla 1.5 -> 3.1 migration with sql

I am just migrating a joomla 1.5 site to 3.1 manually, after some fallen trials with migration tools. 在使用迁移工具进行了一些失败的试验之后,我只是手动将joomla 1.5站点迁移到3.1。 The site isn't too complicated so I have started with manual sql. 该站点不是太复杂,因此我已经开始使用手动sql。 Content was migrated successfully, but the jos_menu make me a headache. 内容已成功迁移,但是jos_menu令我头疼。

The next sql statement seems to be working, but the menu items can't be modified on the administrator page after the insertion: 下一条sql语句似乎正常工作,但是插入后无法在管理员页面上修改菜单项:

Insert into try0715_menu 
(id, menutype, title, alias, link, type, published, parent_id, language, access ) 
select id+200, 'magyar-menu', name, alias, link, type, published, parent+200, 'hu-HU', 1   
from j15.jos_menu  
where menutype = 'mainmenu'
and type = 'component'
and published = 1
and componentid = 20;

ps.: I left the rgt and lft fields on 0 on the inserted records. ps .:我在插入的记录上将rgtlft字段保留为0。

Can someone point my fault, or recommend any resource about how to transfer joomla menus by sql from 1.5 to 3.1 ? 有人可以指出我的错,或推荐任何有关如何通过sql将joomla菜单从1.5传输到3.1的资源吗?

A have just recognized that, JUpgrade module on http://extensions.joomla.org/extensions/migration-a-conversion/joomla-migration/11658 makes the menu table migration well. 一个刚刚认识到,在JUpgrade模块http://extensions.joomla.org/extensions/migration-a-conversion/joomla-migration/11658使得菜单表迁移很好。 Even more, the source code can be checked in the com_jupgrade-2.5.2\\com_jupgrade\\admin\\includes\\migrate_menus.php, it answers all of my questions about the migration of this table. 甚至可以在com_jupgrade-2.5.2 \\ com_jupgrade \\ admin \\ includes \\ migrate_menus.php中检查源代码,它回答了我有关此表迁移的所有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM