* change for upgrade.

This commit is contained in:
wangyidong
2015-11-10 10:50:01 +08:00
parent b82964c389
commit 61eb0a6fc3
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -94,3 +94,4 @@ $lang->upgrade->fromVersions['7_1'] = '7.1';
$lang->upgrade->fromVersions['7_2'] = '7.2';
$lang->upgrade->fromVersions['7_2_4'] = '7.2.4';
$lang->upgrade->fromVersions['7_2_5'] = '7.2.5';
$lang->upgrade->fromVersions['7_3'] = '7.3';
+1
View File
@@ -94,3 +94,4 @@ $lang->upgrade->fromVersions['7_1'] = '7.1';
$lang->upgrade->fromVersions['7_2'] = '7.2';
$lang->upgrade->fromVersions['7_2_4'] = '7.2.4';
$lang->upgrade->fromVersions['7_2_5'] = '7.2.5';
$lang->upgrade->fromVersions['7_3'] = '7.3';
+3
View File
@@ -125,6 +125,8 @@ class upgradeModel extends model
$this->execSQL($this->getUpgradeFile('7.2.4'));
case '7_2_5':
$this->adjustOrder7_3();
case '7_3':
$this->execSQL($this->getUpgradeFile('7.3'));
default: if(!$this->isError()) $this->setting->updateVersion($this->config->version);
}
@@ -194,6 +196,7 @@ class upgradeModel extends model
case '7_1': $confirmContent .= file_get_contents($this->getUpgradeFile('7.1'));
case '7_2':
case '7_2_4': $confirmContent .= file_get_contents($this->getUpgradeFile('7.2.4'));
case '7_3': $confirmContent .= file_get_contents($this->getUpgradeFile('7.3'));
}
return str_replace('zt_', $this->config->db->prefix, $confirmContent);
}