* add new version.
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ if(!function_exists('getWebRoot')){function getWebRoot(){}}
|
||||
|
||||
/* Basic settings. */
|
||||
$config = new config();
|
||||
$config->version = '6.0'; // The version of zentaopms. Don't change it.
|
||||
$config->version = '6.1'; // 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
|
||||
|
||||
@@ -55,6 +55,7 @@ CREATE TABLE IF NOT EXISTS `zt_bug` (
|
||||
`case` mediumint(8) unsigned NOT NULL,
|
||||
`caseVersion` smallint(6) NOT NULL default '1',
|
||||
`result` mediumint(8) unsigned NOT NULL,
|
||||
`testtask` mediumint(8) unsigned NOT NULL,
|
||||
`lastEditedBy` varchar(30) NOT NULL default '',
|
||||
`lastEditedDate` datetime NOT NULL,
|
||||
`deleted` enum('0','1') NOT NULL default '0',
|
||||
|
||||
@@ -81,3 +81,4 @@ $lang->upgrade->fromVersions['5_2'] = '5.2';
|
||||
$lang->upgrade->fromVersions['5_2_1'] = '5.2.1';
|
||||
$lang->upgrade->fromVersions['5_3'] = '5.3';
|
||||
$lang->upgrade->fromVersions['6_0_beta1'] = '6.0.beta1';
|
||||
$lang->upgrade->fromVersions['6_0'] = '6.0';
|
||||
|
||||
@@ -81,3 +81,4 @@ $lang->upgrade->fromVersions['5_2'] = '5.2';
|
||||
$lang->upgrade->fromVersions['5_2_1'] = '5.2.1';
|
||||
$lang->upgrade->fromVersions['5_3'] = '5.3';
|
||||
$lang->upgrade->fromVersions['6_0_beta1'] = '6.0.beta1';
|
||||
$lang->upgrade->fromVersions['6_0'] = '6.0';
|
||||
|
||||
@@ -107,6 +107,9 @@ class upgradeModel extends model
|
||||
$this->toLowerTable();
|
||||
$this->fixBugOSInfo();
|
||||
$this->fixTaskFinishedBy();
|
||||
case '6_0':
|
||||
$this->execSQL($this->getUpgradeFile('6.0'));
|
||||
$this->fixDataIndex();
|
||||
|
||||
default: if(!$this->isError()) $this->setting->updateVersion($this->config->version);
|
||||
}
|
||||
@@ -167,6 +170,7 @@ class upgradeModel extends model
|
||||
case '5_2_1': $confirmContent .= file_get_contents($this->getUpgradeFile('5.2.1'));
|
||||
case '5_3':
|
||||
case '6_0_beta1': $confirmContent .= file_get_contents($this->getUpgradeFile('6.0.beta1'));
|
||||
case '6_0': $confirmContent .= file_get_contents($this->getUpgradeFile('6.0'));
|
||||
}
|
||||
return str_replace('zt_', $this->config->db->prefix, $confirmContent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user