Database 将xoops注释转换为Wordpress
我必须将Xoops项目转换为Wordpress项目。 现在我在将Xoops注释转换为Wordpress时遇到问题。 我知道存储注释的表是表“xoopscomments”,但我不知道它的字段的含义,我四处搜索了很多,没有找到任何关于它的信息。 关于“XoopsComment”类 有人知道吗? 以下是该表的架构:Database 将xoops注释转换为Wordpress,database,wordpress,migration,Database,Wordpress,Migration,我必须将Xoops项目转换为Wordpress项目。 现在我在将Xoops注释转换为Wordpress时遇到问题。 我知道存储注释的表是表“xoopscomments”,但我不知道它的字段的含义,我四处搜索了很多,没有找到任何关于它的信息。 关于“XoopsComment”类 有人知道吗? 以下是该表的架构: CREATE TABLE `xoops_xoopscomments` ( `com_id` mediumint(8) unsigned NOT NULL auto_increment,
CREATE TABLE `xoops_xoopscomments` (
`com_id` mediumint(8) unsigned NOT NULL auto_increment,
`com_pid` mediumint(8) unsigned NOT NULL default '0',
`com_rootid` mediumint(8) unsigned NOT NULL default '0',
`com_modid` smallint(5) unsigned NOT NULL default '0',
`com_itemid` mediumint(8) unsigned NOT NULL default '0',
`com_icon` varchar(25) collate latin1_general_ci NOT NULL default '',
`com_created` int(10) unsigned NOT NULL default '0',
`com_modified` int(10) unsigned NOT NULL default '0',
`com_uid` mediumint(8) unsigned NOT NULL default '0',
`com_ip` varchar(15) collate latin1_general_ci NOT NULL default '',
`com_title` varchar(255) collate latin1_general_ci NOT NULL default '',
`com_text` text collate latin1_general_ci,
`com_sig` tinyint(1) unsigned NOT NULL default '0',
`com_status` tinyint(1) unsigned NOT NULL default '0',
`com_exparams` varchar(255) collate latin1_general_ci NOT NULL default '',
`dohtml` tinyint(1) unsigned NOT NULL default '0',
`dosmiley` tinyint(1) unsigned NOT NULL default '0',
`doxcode` tinyint(1) unsigned NOT NULL default '0',
`doimage` tinyint(1) unsigned NOT NULL default '0',
`dobr` tinyint(1) unsigned NOT NULL default '0',
PRIMARY KEY (`com_id`),
KEY `com_pid` (`com_pid`),
KEY `com_itemid` (`com_itemid`),
KEY `com_uid` (`com_uid`),
KEY `com_title` (`com_title`(40))
) ENGINE=MyISAM AUTO_INCREMENT=19443 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
提前谢谢!;) 您只需要以下字段:
com\u uid
从users
表中获取用户信息(uname
,email
),然后将所有数据插入Wordpresswp\u comments
表中:
- 评论帖子ID
- 评论作者(用户名)
- 评论\u作者\u电子邮件
- 评论内容
- 已批准的意见
- 评论日期