开源版8.1.3升级到9.8错误已解决 悬赏5积分
07:50:01 ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'project' in 'field list'
The sql is: SELECT project, account FROM `zt_team` wHeRe project = '1'
in D:\12Zendao\xampp\zentao\lib\base\dao\dao.class.php on line 1392, last called by D:\12Zendao\xampp\zentao\lib\base\dao\dao.class.php on line 706 through function sqlError.in D:\12Zendao\xampp\zentao\framework\base\router.class.php on line 2196 when visiting /zentao/upgrade.php?m=upgrade&f=execute
zt_team 表中并没有Project字段
ALTER TABLE `zt_team` ADD `limitedUser` varchar(8) NOT NULL default 'no' AFTER `role`;
ALTER TABLE `zt_team` ADD `task` mediumint(8) NOT NULL DEFAULT '0' AFTER `project`;
ALTER TABLE `zt_team` ADD `estimate` DECIMAL(12,2) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `zt_team` ADD `consumed` DECIMAL(12,2) UNSIGNED NOT NULL DEFAULT '0' AFTER `estimate`;
ALTER TABLE `zt_team` ADD `left` DECIMAL(12,2) UNSIGNED NOT NULL DEFAULT '0' AFTER `consumed`;
ALTER TABLE `zt_team` ADD `order` TINYINT(3) NOT NULL DEFAULT '0' AFTER `left`;
ALTER TABLE `zt_team` DROP PRIMARY KEY;
ALTER TABLE `zt_team` ADD PRIMARY KEY (`project`, `task`, `account`);
ALTER TABLE `zt_team` CHANGE `limitedUser` `limited` varchar(8) COLLATE 'utf8_general_ci' NOT NULL DEFAULT 'no' AFTER `role`;
禅道版本:9.8.stable
安装包类型:源码包
操作系统:Windows 7
客户端浏览器:Chrome
禅道-李锡碧
2018-02-01 08:49:36
升级覆盖源码后,有执行upgrade.php进行升级吗?执行升级操作后,有提示升级成功吗?
回复
|
石洋洋
2018-02-02 13:21:59
升级只能执行一次,升级过程中会把 project字段去掉的。
|