* change for upgrade.

This commit is contained in:
wangyidong
2014-11-06 01:03:23 +00:00
parent f1f4e8a48d
commit 88ee97e72c
5 changed files with 6 additions and 2 deletions

View File

@@ -1 +1 @@
6.2.stable
6.3.stable

View File

@@ -17,7 +17,7 @@ if(!function_exists('getWebRoot')){function getWebRoot(){}}
/* Basic settings. */
$config = new config();
$config->version = '6.2'; // The version of zentaopms. Don't change it.
$config->version = '6.3'; // The version of zentaopms. Don't change it.
$config->charset = 'UTF-8'; // The charset of zentaopms.
$config->cookieLife = time() + 2592000; // The cookie life time.
$config->timezone = 'Asia/Shanghai'; // The time zone setting, for more see http://www.php.net/manual/en/timezones.php

View File

@@ -83,3 +83,4 @@ $lang->upgrade->fromVersions['5_3'] = '5.3';
$lang->upgrade->fromVersions['6_0_beta1'] = '6.0.beta1';
$lang->upgrade->fromVersions['6_0'] = '6.0';
$lang->upgrade->fromVersions['6_1'] = '6.1';
$lang->upgrade->fromVersions['6_2'] = '6.2';

View File

@@ -83,3 +83,4 @@ $lang->upgrade->fromVersions['5_3'] = '5.3';
$lang->upgrade->fromVersions['6_0_beta1'] = '6.0.beta1';
$lang->upgrade->fromVersions['6_0'] = '6.0';
$lang->upgrade->fromVersions['6_1'] = '6.1';
$lang->upgrade->fromVersions['6_2'] = '6.2';

View File

@@ -112,6 +112,7 @@ class upgradeModel extends model
$this->fixDataIndex();
case '6_1':
$this->execSQL($this->getUpgradeFile('6.1'));
case '6_2':
default: if(!$this->isError()) $this->setting->updateVersion($this->config->version);
}
@@ -174,6 +175,7 @@ class upgradeModel extends model
case '6_0_beta1': $confirmContent .= file_get_contents($this->getUpgradeFile('6.0.beta1'));
case '6_0': $confirmContent .= file_get_contents($this->getUpgradeFile('6.0'));
case '6_1': $confirmContent .= file_get_contents($this->getUpgradeFile('6.1'));
case '6_2':
}
return str_replace('zt_', $this->config->db->prefix, $confirmContent);
}