From 73bf39d6887c9ad9c94d6d55c0a56bd8d7013dda Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Fri, 11 Mar 2022 14:40:01 +0800 Subject: [PATCH] * Add the xuan sql when upgrade. --- module/upgrade/model.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 93f8983867..028004c470 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -470,6 +470,16 @@ class upgradeModel extends model $xuanxuanSql = $this->app->getAppRoot() . 'db' . DS . 'xuanxuan.sql'; $this->execSQL($xuanxuanSql); } + else + { + if(!$executeXuanxuan) + { + $xuanxuanSql = $this->app->getAppRoot() . 'db' . DS . 'upgradexuanxuan4.6.sql'; + $this->execSQL($xuanxuanSql); + $xuanxuanSql = $this->app->getAppRoot() . 'db' . DS . 'upgradexuanxuan5.1.sql'; + $this->execSQL($xuanxuanSql); + } + } if($fromVersion[0] == 'p') break; $this->execSQL($this->getUpgradeFile('proinstall'));