* Update sprints history.

This commit is contained in:
tianshujie98
2021-02-25 10:19:11 +08:00
parent 4c4d11feb2
commit 28573a0b2a
+3 -1
View File
@@ -305,7 +305,9 @@ class upgrade extends control
$hourPoint = $this->loadModel('setting')->getItem('owner=system&module=custom&key=hourPoint');
if(empty($hourPoint)) $this->setting->setItem('system.custom.hourPoint', 0);
$this->dao->update(TABLE_ACTION)->set('objectType')->eq('execution')->where('objectType')->eq('project')->exec();
/* Update sprints history. */
$sprints = $this->dao->select('id')->from(TABLE_PROJECT)->where('type')->eq('sprint')->fetchAll();
$this->dao->update(TABLE_ACTION)->set('objectType')->eq('execution')->where('objectID')->in(array_keys($sprints))->exec();
die(js::locate($this->createLink('upgrade', 'mergeRepo')));
}