升级 Discuz! X3.4 【20220131】时升级表 pre_forum_post_1 出错
2022-04-14 16:24 来自 𝕷𝖎𝖑𝖏𝖆𝖈𝖐 发布@ Discuz!问题求助
2005年的Discuz!一路升级,这次想升级至X3.4,却出现问题,请高手指导。
10375
执行 update.php 时,在
http://www.xxx.xxx/install/update.php?step=sql&i=163&specid=1时出错,显示:
10376
升级表 pre_forum_post_1 出错,请手工执行以下升级语句后,再重新运行本升级程序:
升级SQL语句:<div style="line-height: 1.5em; word-break: break-all; background: rgb(235, 235, 235); padding: 0.5em;">ALTER TABLE pre_forum_post_1 CHANGE `fid` `fid` mediumint(8) unsigned NOT NULL DEFAULT '0', CHANGE `tid` `tid` mediumint(8) unsigned NOT NULL DEFAULT '0', CHANGE `replycredit` `replycredit` int
10375
执行 update.php 时,在
http://www.xxx.xxx/install/update.php?step=sql&i=163&specid=1时出错,显示:
10376
升级表 pre_forum_post_1 出错,请手工执行以下升级语句后,再重新运行本升级程序:
升级SQL语句:<div style="line-height: 1.5em; word-break: break-all; background: rgb(235, 235, 235); padding: 0.5em;">ALTER TABLE pre_forum_post_1 CHANGE `fid` `fid` mediumint(8) unsigned NOT NULL DEFAULT '0', CHANGE `tid` `tid` mediumint(8) unsigned NOT NULL DEFAULT '0', CHANGE `replycredit` `replycredit` int
3.4升级到3.5出现 there can be only one auto column and it must be defined as a key New
2024-02-17 20:26 来自 左右不逢缘 发布@ Discuz!问题求助
在转换主题分表pre_forum_post_1表的时候出现
(1075) Incorrect table definition; there can be only one auto column and it must be defined as a keyALTER TABLE forum_post_1 ENGINE=InnoDB;
查看表结构
position字段有个
AUTO_INCREMENT值如图,但是这个值在pre_forum_post也是有的,转换后会自动删除这值。而分表pre_forum_post_1直接提示错误。
58940
我知道答案 回答被采纳将会获得1 贡献 已有0人回答
(1075) Incorrect table definition; there can be only one auto column and it must be defined as a keyALTER TABLE forum_post_1 ENGINE=InnoDB;
查看表结构
position字段有个
AUTO_INCREMENT值如图,但是这个值在pre_forum_post也是有的,转换后会自动删除这值。而分表pre_forum_post_1直接提示错误。
58940
我知道答案 回答被采纳将会获得1 贡献 已有0人回答



