This commit is contained in:
tianshujie
2023-04-26 18:14:45 +08:00
parent a606bb13e9
commit 96b7ae1f55
+3
View File
@@ -8627,6 +8627,9 @@ class upgradeModel extends model
}
$this->dao->update(TABLE_DOC)->set('`type`')->eq('text')->where('`type`')->eq('book')->exec();
$this->dbh->exec("UPDATE " . TABLE_DOC . " AS t1 LEFT JOIN " . TABLE_EXECUTION . " AS t2 ON t1.`execution` = t2.`id` SET t1.`project` = t2.`project` WHERE t1.`execution` != 0 AND t1.`project` = 0 AND t2.`project` != 0");
return true;
}