开源版8.1.3升级到9.8错误
07:50:01 ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'project' in 'field list'<p>The sql is: SELECT project, account FROM `zt_team` wHeRe project = '1'</p> 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`;