* Change book lib to custom lib.

This commit is contained in:
liumengyi
2023-03-30 11:17:44 +08:00
parent a8ab7fa2d5
commit ec89805736
+1 -2
View File
@@ -8275,10 +8275,9 @@ class upgradeModel extends model
$this->dao->update(TABLE_MODULE)->set('`path`')->eq(",{$path},")->where('id')->eq($moduleID)->exec();
$this->dao->update(TABLE_DOC)->set('`module`')->eq($moduleID)->set('`parent`')->eq($moduleID)->set("`path` = REPLACE(`path`, '{$chapter->path}', ',{$path},')")->set('`type`')->eq('text')->where('`parent`')->eq($id)->andWhere('`type`')->eq('article')->exec();
$this->dao->update(TABLE_DOC)->set('`deleted`')->eq('1')->where('id')->eq($id)->exec();
}
}
$this->dao->update(TABLE_DOCLIB)->set('`type`')->eq('custom')->where('id')->eq($libID)->exec();
}
return true;
}