* Modify update sql.

This commit is contained in:
songchenxuan
2023-06-16 16:48:31 +08:00
parent 3baa92e74a
commit 172f1eac0e

View File

@@ -9313,7 +9313,7 @@ class upgradeModel extends model
*/
public function processDeployStepAction()
{
$steps = $this->dao->select('*')->from(TABLE_DEPLOYSTEP)->where('deleted')->fetchAll('id');
$this->dao->delete()->from(TABLE_ACTION)->where('objectType')->eq('deploystep')->andWhere('objectID')->notIN(array_keys($steps))->exec();
$steps = $this->dao->select('*')->from(TABLE_DEPLOYSTEP)->fetchAll('id');
if($steps) $this->dao->delete()->from(TABLE_ACTION)->where('objectType')->eq('deploystep')->andWhere('objectID')->notIN(array_keys($steps))->exec();
}
}