* Execute xuanxuan update sql.

This commit is contained in:
zhujinyong
2022-03-14 13:55:52 +08:00
parent 89aea98b25
commit b5da3ce7d5
+17 -16
View File
@@ -461,28 +461,29 @@ class upgradeModel extends model
set_time_limit(0);
$this->updateActivatedDate();
if(!empty($this->config->isINT))
{
$xuanxuanSql = $this->app->getAppRoot() . 'db' . DS . 'xuanxuan.sql';
$this->execSQL($xuanxuanSql);
$executedXuanxuan = true;
}
else
{
if(!$executedXuanxuan)
{
$xuanxuanSql = $this->app->getAppRoot() . 'db' . DS . 'upgradexuanxuan4.6.sql';
$this->execSQL($xuanxuanSql);
$xuanxuanSql = $this->app->getAppRoot() . 'db' . DS . 'upgradexuanxuan5.1.sql';
$this->execSQL($xuanxuanSql);
}
}
switch($fromEdition)
{
case 'open':
$this->execSQL($this->getUpgradeFile('proinstall'));
case 'pro':
$this->execSQL($this->getUpgradeFile('bizinstall'));
if(!empty($this->config->isINT))
{
$xuanxuanSql = $this->app->getAppRoot() . 'db' . DS . 'xuanxuan.sql';
$this->execSQL($xuanxuanSql);
$executedXuanxuan = true;
}
else
{
if(!$executedXuanxuan)
{
$xuanxuanSql = $this->app->getAppRoot() . 'db' . DS . 'upgradexuanxuan4.6.sql';
$this->execSQL($xuanxuanSql);
$xuanxuanSql = $this->app->getAppRoot() . 'db' . DS . 'upgradexuanxuan5.1.sql';
$this->execSQL($xuanxuanSql);
}
}
case 'biz':
$this->execSQL($this->getUpgradeFile('maxinstall'));
$this->execSQL($this->getUpgradeFile('functions'));