* Adjust for upgrade.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
#logBox{overflow:hidden; height:350px; display: block; white-space: normal; text-align: left; background: #f5f5f5; margin-bottom: 15px; padding:8px;}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user