From ec898057369ba080e1f0d72001eaf1e0ed40339e Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 30 Mar 2023 11:17:44 +0800 Subject: [PATCH] * Change book lib to custom lib. --- module/upgrade/model.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/upgrade/model.php b/module/upgrade/model.php index ebc92e69e6..cef88f0958 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -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; }