用SQL:手动将dedecms转帝国cms教程

shape
shape
shape
shape
shape
shape
shape
shape
%title缩略图

想把dedecms转换到帝国CMS,但是目前还没有好用的转换程序,我们经过收集整理测试,将手动转换的办法分享给大家,主要是通过SQL语句升级数据库。

一、批量导入栏目:

insert into phome_enewsclass (classid,bclassid,classname,myorder,classpath,intro,classpagekey) select id,reid,typename,sortrank,typedir,description,keywords from dede_arctype

二、导入文章

insert into phome_ecms_news (id,classid,truetime,onclick,title,titlepic,filename,newstime,lastdotime,smalltext,keyboard) select id,typeid,sortrank,click,title,litpic,filename,pubdate,senddate,description,keywords from dede_archives

三、导入文章来源作者

update `dede_archives` da,mlf_ecms_news_data_1 men set da.source=men.befrom,da.writer=men.writer where da.id=men.id

四、导入文章body(内容)

insert into phome_ecms_news_data_1 (id,classid,newstext) select aid,typeid,body from dede_addonarticle men

五、其他可能用的语句(参考):

1、替换多余的路径

update phome_enewsclass set classpath = replace(classpath,'{cmspath}/’,”)

2、批量设置文章属性:

UPDATE phome_enewsclass SET lencord = ’25’, link_num = ’10’, classtype= ‘.HTML’,newspath = ”,filename = ‘.html’,hotline = ’10’,goodline = ’10’,newline = ’10’,hotline = ’10’,modid = ‘1’,checked = ‘1’,tbname = ‘news’,down_num = ‘2’,online_num = ‘2’,listorderf = ‘id’,listorder = ‘DESC’, reorderf= ‘newstime’,reorder = ‘DESC’,jstempid = ‘1’,addreinfo = ‘1’,islast = ‘1’,filetype=’.html’listtempid = ‘1’,newstempid = ‘1’ filetype=’.html’,newspath = ”filetype=’.html’

六:常见问题:
1、目录权限
2、设置:栏目父子关系

发表评论