* Fix bug for lite upgrade to ipd.

This commit is contained in:
tanghucheng
2023-07-26 17:25:07 +08:00
parent be39cd23bc
commit be68306f37
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -170,3 +170,4 @@ UPDATE `zt_priv` SET `vision` = ',rnd,or,' WHERE `module` = 'requirement' AND `m
REPLACE INTO `zt_config` (`vision`, `owner`, `module`, `section`, `key`, `value`) VALUES ('', 'system', 'common', 'global', 'mode', 'PLM');
REPLACE INTO `zt_config` (`vision`, `owner`, `module`, `section`, `key`, `value`) VALUES ('', 'system', 'custom', '', 'URAndSR', '1');
REPLACE INTO `zt_config` (`vision`, `owner`, `module`, `section`, `key`, `value`) VALUES ('', 'system', 'common', '', 'disabledFeatures', '');
+1 -1
View File
@@ -7231,7 +7231,7 @@ class upgradeModel extends model
$fieldConfig = isset($upgradeConfig[$module][$code]) ? $upgradeConfig[$module][$code] : array();
foreach($fieldConfig as $key => $value) $field->$key = $value;
$this->dao->insert(TABLE_WORKFLOWFIELD)->data($field)->autoCheck()->exec();
$this->dao->replace(TABLE_WORKFLOWFIELD)->data($field)->autoCheck()->exec();
}
}