- upgrade: remove unused code.
This commit is contained in:
@@ -93,7 +93,7 @@ $config->upgrade->execFlow['18_7'] = array('functions' => 'processHistory
|
||||
$config->upgrade->execFlow['18_8'] = array('functions' => 'upgradeTesttaskMembers,deleteGeneralReportBlock,stopOldCron');
|
||||
$config->upgrade->execFlow['18_9'] = array('functions' => 'addDefaultTraincoursePriv,renameBIModule,migrateXuanClientSettings');
|
||||
$config->upgrade->execFlow['18_10_1'] = array('functions' => 'migrateAIModelConfig');
|
||||
$config->upgrade->execFlow['20_0_alpha1'] = array('functions' => 'revertStoryCustomFields,hideOA,updateMetricDateType,update1810,update18101,migrateAIModelConfig');
|
||||
$config->upgrade->execFlow['20_0_alpha1'] = array('functions' => 'revertStoryCustomFields,hideOA,updateMetricDateType,update18101,migrateAIModelConfig');
|
||||
|
||||
if(!empty($config->isINT))
|
||||
{
|
||||
|
||||
@@ -8553,26 +8553,6 @@ class upgradeModel extends model
|
||||
$this->setting->setItem('system.common.closedFeatures', trim($closedFeatures . ',otherOA', ','));
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否添加了18.10版本的需求池字段,如果没有就添加。
|
||||
* Check if the demand pool field of version 18.10 is added, if not, add it.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function update1810(): void
|
||||
{
|
||||
$fields = $this->dao->query('DESC ' . TABLE_DEMANDPOOL)->fetchAll();
|
||||
foreach($fields as $field)
|
||||
{
|
||||
if($field->Field == 'products') return;
|
||||
}
|
||||
|
||||
/* Execute open edition. */
|
||||
$this->saveLogs('Execute 18_10');
|
||||
$this->execSQL($this->getUpgradeFile('18.10'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否添加了18.10.1版本的 AI 表,如果没有就添加。
|
||||
* Check if the AI table of version 18.10.1 is added, if not, add it.
|
||||
|
||||
Reference in New Issue
Block a user