* Adjust for upgrade.

This commit is contained in:
wangyidong
2024-01-03 17:20:17 +08:00
parent 51638d24c9
commit 8f62913240
3 changed files with 6 additions and 3 deletions
-2
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
#logBox{overflow:hidden; height:350px; display: block; white-space: normal; text-align: left; background: #f5f5f5; margin-bottom: 15px; padding:8px;}
+5 -1
View File
@@ -8200,7 +8200,11 @@ class upgradeModel extends model
$this->setting->setItem('system.block.closed', $closedBlocks);
}
$this->dao->delete()->from(TABLE_BLOCK)->where('code')->eq('waterfallgeneralreport')->exec();
$blockDesc = $this->dao->query('DESC ' . TABLE_BLOCK)->fetchAll();
$fields = array();
foreach($blockDesc as $field) $fields[$field->Field] = $field->Field;
if(isset($fields['block'])) $this->dao->delete()->from(TABLE_BLOCK)->where('block')->eq('waterfallgeneralreport')->exec();
return true;
}