* adjust for upgrade.

This commit is contained in:
wangyidong
2016-12-08 13:27:15 +08:00
parent 18280dc2e9
commit 2f71effc52

View File

@@ -1449,8 +1449,8 @@ class upgradeModel extends model
public function renameMainLib()
{
$this->app->loadLang('doc');
$this->dao->update(TABLE_DOCLIB)->set('name')->eq($this->lang->doclib->main['product'])->where('name')->eq($this->lang->doclib->product)->exec();
$this->dao->update(TABLE_DOCLIB)->set('name')->eq($this->lang->doclib->main['project'])->where('name')->eq($this->lang->doclib->project)->exec();
$this->dao->update(TABLE_DOCLIB)->set('name')->eq($this->lang->doclib->main['product'])->where('product')->gt(0)->andWhere('main')->eq(1)->exec();
$this->dao->update(TABLE_DOCLIB)->set('name')->eq($this->lang->doclib->main['project'])->where('project')->gt(0)->andWhere('main')->eq(1)->exec();
return true;
}