From fd5b777517856239a14ce46fc9c409eee8ddb99e Mon Sep 17 00:00:00 2001 From: wangyidong Date: Sun, 2 Dec 2012 01:14:35 +0000 Subject: [PATCH] * upgrade 3.3 to 4.0.beta1. --- module/upgrade/lang/en.php | 1 + module/upgrade/lang/zh-cn.php | 1 + module/upgrade/model.php | 1079 +++------------------------------ 3 files changed, 75 insertions(+), 1006 deletions(-) diff --git a/module/upgrade/lang/en.php b/module/upgrade/lang/en.php index ae0ba77e09..400a9b1cc1 100644 --- a/module/upgrade/lang/en.php +++ b/module/upgrade/lang/en.php @@ -64,3 +64,4 @@ $lang->upgrade->fromVersions['3_0'] = '3.0 STABLE'; $lang->upgrade->fromVersions['3_1'] = '3.1'; $lang->upgrade->fromVersions['3_2'] = '3.2'; $lang->upgrade->fromVersions['3_2_1'] = '3.2.1'; +$lang->upgrade->fromVersions['3_3'] = '3.3'; diff --git a/module/upgrade/lang/zh-cn.php b/module/upgrade/lang/zh-cn.php index aebb01bff5..d131b91f41 100644 --- a/module/upgrade/lang/zh-cn.php +++ b/module/upgrade/lang/zh-cn.php @@ -64,3 +64,4 @@ $lang->upgrade->fromVersions['3_0'] = '3.0 STABLE'; $lang->upgrade->fromVersions['3_1'] = '3.1'; $lang->upgrade->fromVersions['3_2'] = '3.2'; $lang->upgrade->fromVersions['3_2_1'] = '3.2.1'; +$lang->upgrade->fromVersions['3_3'] = '3.3'; diff --git a/module/upgrade/model.php b/module/upgrade/model.php index d1c352683f..080e14a7a8 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -30,403 +30,53 @@ class upgradeModel extends model */ public function execute($fromVersion) { - if($fromVersion == '0_3beta') + switch($fromVersion) { - $this->upgradeFrom0_3To0_4(); - $this->upgradeFrom0_4To0_5(); - $this->upgradeFrom0_5To0_6(); - $this->upgradeFrom0_6To1_0_B(); - $this->upgradeFrom1_0betaTo1_0rc1(); - $this->upgradeFrom1_0rc1To1_0rc2(); - $this->upgradeFrom1_0rc2To1_0stable(); - $this->upgradeFrom1_0stableTo1_0_1(); - $this->upgradeFrom1_0_1To1_1(); - $this->upgradeFrom1_1To1_2(); - $this->upgradeFrom1_2To1_3(); - $this->upgradeFrom1_3To1_4(); - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom1_5To2_0(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '0_4beta') - { - $this->upgradeFrom0_4To0_5(); - $this->upgradeFrom0_5To0_6(); - $this->upgradeFrom0_6To1_0_B(); - $this->upgradeFrom1_0betaTo1_0rc1(); - $this->upgradeFrom1_0rc1To1_0rc2(); - $this->upgradeFrom1_0rc2To1_0stable(); - $this->upgradeFrom1_0stableTo1_0_1(); - $this->upgradeFrom1_0_1To1_1(); - $this->upgradeFrom1_1To1_2(); - $this->upgradeFrom1_2To1_3(); - $this->upgradeFrom1_3To1_4(); - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom1_5To2_0(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '0_5beta') - { - $this->upgradeFrom0_5To0_6(); - $this->upgradeFrom0_6To1_0_B(); - $this->upgradeFrom1_0betaTo1_0rc1(); - $this->upgradeFrom1_0rc1To1_0rc2(); - $this->upgradeFrom1_0rc2To1_0stable(); - $this->upgradeFrom1_0stableTo1_0_1(); - $this->upgradeFrom1_0_1To1_1(); - $this->upgradeFrom1_1To1_2(); - $this->upgradeFrom1_2To1_3(); - $this->upgradeFrom1_3To1_4(); - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '0_6beta') - { - $this->upgradeFrom0_6To1_0_B(); - $this->upgradeFrom1_0betaTo1_0rc1(); - $this->upgradeFrom1_0rc1To1_0rc2(); - $this->upgradeFrom1_0rc2To1_0stable(); - $this->upgradeFrom1_0stableTo1_0_1(); - $this->upgradeFrom1_0_1To1_1(); - $this->upgradeFrom1_1To1_2(); - $this->upgradeFrom1_2To1_3(); - $this->upgradeFrom1_3To1_4(); - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '1_0beta') - { - $this->upgradeFrom1_0betaTo1_0rc1(); - $this->upgradeFrom1_0rc1To1_0rc2(); - $this->upgradeFrom1_0rc2To1_0stable(); - $this->upgradeFrom1_0stableTo1_0_1(); - $this->upgradeFrom1_0_1To1_1(); - $this->upgradeFrom1_1To1_2(); - $this->upgradeFrom1_2To1_3(); - $this->upgradeFrom1_3To1_4(); - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom1_5To2_0(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '1_0rc1') - { - $this->upgradeFrom1_0rc1To1_0rc2(); - $this->upgradeFrom1_0rc2To1_0stable(); - $this->upgradeFrom1_0stableTo1_0_1(); - $this->upgradeFrom1_0_1To1_1(); - $this->upgradeFrom1_1To1_2(); - $this->upgradeFrom1_2To1_3(); - $this->upgradeFrom1_3To1_4(); - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom1_5To2_0(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '1_0rc2') - { - $this->upgradeFrom1_0rc2To1_0stable(); - $this->upgradeFrom1_0stableTo1_0_1(); - $this->upgradeFrom1_0_1To1_1(); - $this->upgradeFrom1_1To1_2(); - $this->upgradeFrom1_2To1_3(); - $this->upgradeFrom1_3To1_4(); - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom1_5To2_0(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '1_0') - { - $this->upgradeFrom1_0stableTo1_0_1(); - $this->upgradeFrom1_0_1To1_1(); - $this->upgradeFrom1_1To1_2(); - $this->upgradeFrom1_2To1_3(); - $this->upgradeFrom1_3To1_4(); - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom1_5To2_0(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '1_0_1') - { - $this->upgradeFrom1_0_1To1_1(); - $this->upgradeFrom1_1To1_2(); - $this->upgradeFrom1_2To1_3(); - $this->upgradeFrom1_3To1_4(); - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom1_5To2_0(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '1_1') - { - $this->upgradeFrom1_1To1_2(); - $this->upgradeFrom1_2To1_3(); - $this->upgradeFrom1_3To1_4(); - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom1_5To2_0(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '1_2') - { - $this->upgradeFrom1_2To1_3(); - $this->upgradeFrom1_3To1_4(); - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom1_5To2_0(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '1_3') - { - $this->upgradeFrom1_3To1_4(); - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom1_5To2_0(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '1_4') - { - $this->upgradeFrom1_4To1_5(); - $this->upgradeFrom1_5To2_0(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '1_5') - { - $this->upgradeFrom1_5To2_0(); - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '2_0') - { - $this->upgradeFrom2_0To2_1(); - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '2_1') - { - $this->upgradeFrom2_1To2_2(); - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '2_2') - { - $this->upgradeFrom2_2To2_3(); - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '2_3') - { - $this->upgradeFrom2_3To2_4(); - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '2_4') - { - $this->upgradeFrom2_4To3_0_beta1(); - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '3_0_beta1') - { - $this->upgradeFrom3_0_beta1To3_0_beta2(); - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '3_0_beta2') - { - $this->upgradeFrom3_0_beta2To3_0_stable(); - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '3_0') - { - $this->upgradeFrom3_0To3_1(); - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '3_1') - { - $this->upgradeFrom3_1To3_2(); - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '3_2') - { - $this->upgradeFrom3_2To3_2_1(); - $this->upgradeFrom3_2_1To3_3(); - } - elseif($fromVersion == '3_2_1') - { - $this->upgradeFrom3_2_1To3_3(); + case '0_3beta': $this->execSQL($this->getUpgradeFile('0.3')); + case '0_4beta': $this->execSQL($this->getUpgradeFile('0.4')); + case '0_5beta': $this->execSQL($this->getUpgradeFile('0.5')); + case '0_6beta': $this->execSQL($this->getUpgradeFile('0.6')); + case '1_0beta': + $this->execSQL($this->getUpgradeFile('1.0.beta')); + $this->updateCompany(); + case '1_0rc1': $this->execSQL($this->getUpgradeFile('1.0.rc1')); + case '1_0rc2': + case '1_0': + case '1_0_1': $this->execSQL($this->getUpgradeFile('1.0.1')); + case '1_1': $this->execSQL($this->getUpgradeFile('1.1')); + case '1_2': + $this->execSQL($this->getUpgradeFile('1.2')); + $this->updateUBB(); + $this->updateNL1_2(); + case '1_3': + $this->execSQL($this->getUpgradeFile('1.3')); + $this->updateNL1_3(); + $this->updateTasks(); + case '1_4': $this->execSQL($this->getUpgradeFile('1.4')); + case '1_5': $this->execSQL($this->getUpgradeFile('1.5')); + case '2_0': $this->execSQL($this->getUpgradeFile('2.0')); + case '2_1': $this->execSQL($this->getUpgradeFile('2.1')); + case '2_2': + $this->execSQL($this->getUpgradeFile('2.2')); + $this->updateCases(); + $this->updateActivatedCountOfBug(); + case '2_3': $this->execSQL($this->getUpgradeFile('2.3')); + case '2_4': $this->execSQL($this->getUpgradeFile('2.4')); + case '3_0_beta1': + $this->execSQL($this->getUpgradeFile('3.0.beta1')); + $this->updateAction(); + $this->setOrderData(); + case '3_0_beta2': + case '3_0': + case '3_1': $this->execSQL($this->getUpgradeFile('3.1')); + case '3_2': $this->execSQL($this->getUpgradeFile('3.2')); + case '3_2_1': $this->execSQL($this->getUpgradeFile('3.2.1')); + case '3_3': + $this->execSQL($this->getUpgradeFile('3.3')); + $this->updateTaskAssignedTo(); + $this->loadModel('setting')->setItem('system', 'common', '', 'flow', 'full'); + + default: if(!$this->isError()) $this->setting->updateVersion($this->config->version); } $this->deletePatch(); @@ -442,621 +92,38 @@ class upgradeModel extends model public function getConfirm($fromVersion) { $confirmContent = ''; - if($fromVersion == '0_3beta') + switch($fromVersion) { - $confirmContent .= file_get_contents($this->getUpgradeFile('0.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('0.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('0.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('0.6')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.beta')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.rc1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); + case '0_3beta': $confirmContent .= file_get_contents($this->getUpgradeFile('0.3')); + case '0_4beta': $confirmContent .= file_get_contents($this->getUpgradeFile('0.4')); + case '0_5beta': $confirmContent .= file_get_contents($this->getUpgradeFile('0.5')); + case '0_6beta': $confirmContent .= file_get_contents($this->getUpgradeFile('0.6')); + case '1_0beta': $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.beta')); + case '1_0rc1': $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.rc1')); + case '1_0rc2': + case '1_0': + case '1_0_1': $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.1')); + case '1_1': $confirmContent .= file_get_contents($this->getUpgradeFile('1.1')); + case '1_2': $confirmContent .= file_get_contents($this->getUpgradeFile('1.2')); + case '1_3': $confirmContent .= file_get_contents($this->getUpgradeFile('1.3')); + case '1_4': $confirmContent .= file_get_contents($this->getUpgradeFile('1.4')); + case '1_5': $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); + case '2_0': $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); + case '2_1': $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); + case '2_2': $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); + case '2_3': $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); + case '2_4': $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); + case '3_0_beta1': $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); + case '3_0_beta2': + case '3_0': + case '3_1': $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); + case '3_2': $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); + case '3_2_1': $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); + case '3_3': $confirmContent .= file_get_contents($this->getUpgradeFile('3.3')); } - elseif($fromVersion == '0_4beta') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('0.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('0.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('0.6')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.beta')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.rc1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '0_5beta') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('0.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('0.6')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.beta')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.rc1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '0_6beta') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('0.6')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.beta')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.rc1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '1_0beta') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.beta')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.rc1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '1_0rc1') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.rc1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '1_0rc2' || $fromVersion == '1_0' || $fromVersion == '1_0_1') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('1.0.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '1_1') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('1.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '1_2') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('1.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '1_3') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('1.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '1_4') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('1.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '1_5') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('1.5')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '2_0') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('2.0')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '2_1') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('2.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '2_2') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('2.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '2_3') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('2.3')); - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '2_4') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('2.4')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '3_0_beta1') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('3.0.beta1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '3_0_beta2') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '3_0') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '3_1') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('3.1')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '3_2') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2')); - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - elseif($fromVersion == '3_2_1') - { - $confirmContent .= file_get_contents($this->getUpgradeFile('3.2.1')); - } - return str_replace('zt_', $this->config->db->prefix, $confirmContent); } - /** - * Upgrade from 0.3 to 0.4 - * - * @access public - * @return void - */ - public function upgradeFrom0_3To0_4() - { - $this->execSQL($this->getUpgradeFile('0.3')); - if(!$this->isError()) $this->setting->updateVersion('0.4 beta'); - } - - /** - * Upgrade from 0.4 to 0.5 - * - * @access public - * @return void - */ - public function upgradeFrom0_4To0_5() - { - $this->execSQL($this->getUpgradeFile('0.4')); - if(!$this->isError()) $this->setting->updateVersion('0.5 beta'); - } - - /** - * Upgrade from 0.5 to 0.6. - * - * @access public - * @return void - */ - public function upgradeFrom0_5To0_6() - { - $this->execSQL($this->getUpgradeFile('0.5')); - if(!$this->isError()) $this->setting->updateVersion('0.6 beta'); - } - - /** - * Upgrade from 0.6 to 1.0 beta. - * - * @access public - * @return void - */ - public function upgradeFrom0_6To1_0_B() - { - $this->execSQL($this->getUpgradeFile('0.6')); - if(!$this->isError()) $this->setting->updateVersion('1.0beta'); - } - - /** - * Upgrade from 1.0 beta to 1.0 rc1. - * - * @access public - * @return void - */ - public function upgradeFrom1_0betaTo1_0rc1() - { - $this->execSQL($this->getUpgradeFile('1.0.beta')); - $this->updateCompany(); - if(!$this->isError()) $this->setting->updateVersion('1.0rc1'); - } - - /** - * Upgrade from 1.0 rc1 to 1.0 rc2. - * - * @access public - * @return void - */ - public function upgradeFrom1_0rc1To1_0rc2() - { - $this->execSQL($this->getUpgradeFile('1.0.rc1')); - if(!$this->isError()) $this->setting->updateVersion('1.0rc2'); - } - - /** - * Upgrade from 1.0 rc2 to 1.0 stable. - * - * @access public - * @return void - */ - public function upgradeFrom1_0rc2To1_0stable() - { - $this->setting->updateVersion('1.0'); - } - - /** - * Upgrade from 1.0 stable to 1.0.1. - * - * @access public - * @return void - */ - public function upgradeFrom1_0stableTo1_0_1() - { - $this->setting->updateVersion('1.0.1'); - } - - /** - * Upgrade from 1.0.1 to 1.1. - * - * @access public - * @return void - */ - public function upgradeFrom1_0_1To1_1() - { - $this->execSQL($this->getUpgradeFile('1.0.1')); - if(!$this->isError()) $this->setting->updateVersion('1.1'); - } - - /** - * Upgrade from 1.1 to 1.2. - * - * @access public - * @return void - */ - public function upgradeFrom1_1To1_2() - { - $this->execSQL($this->getUpgradeFile('1.1')); - if(!$this->isError()) $this->setting->updateVersion('1.2'); - } - - /** - * Upgrade from 1.2 to 1.3. - * - * @access public - * @return void - */ - public function upgradeFrom1_2To1_3() - { - $this->execSQL($this->getUpgradeFile('1.2')); - $this->updateUBB(); - $this->updateNL1_2(); - if(!$this->isError()) $this->setting->updateVersion('1.3'); - } - - /** - * Upgrade from 1.3 to 1.4. - * - * @access public - * @return void - */ - public function upgradeFrom1_3To1_4() - { - $this->execSQL($this->getUpgradeFile('1.3')); - $this->updateNL1_3(); - $this->updateTasks(); - if(!$this->isError()) $this->setting->updateVersion('1.4'); - } - - /** - * Upgrade from 1.4 to 1.5. - * - * @access public - * @return void - */ - public function upgradeFrom1_4To1_5() - { - $this->execSQL($this->getUpgradeFile('1.4')); - if(!$this->isError()) $this->setting->updateVersion('1.5'); - } - - /** - * Upgrade from 1.5 to 2.0. - * - * @access public - * @return void - */ - public function upgradeFrom1_5To2_0() - { - $this->execSQL($this->getUpgradeFile('1.5')); - if(!$this->isError()) $this->setting->updateVersion('2.0'); - } - - /** - * Upgrade from 2.0 to 2.1. - * - * @access public - * @return void - */ - public function upgradeFrom2_0To2_1() - { - $this->execSQL($this->getUpgradeFile('2.0')); - if(!$this->isError()) $this->setting->updateVersion('2.1'); - } - - /** - * Upgrade from 2.1 to 2.2. - * - * @access public - * @return void - */ - public function upgradeFrom2_1To2_2() - { - $this->execSQL($this->getUpgradeFile('2.1')); - if(!$this->isError()) $this->setting->updateVersion('2.2'); - } - - /** - * Upgrade from 2.2 to 2.3. - * - * @access public - * @return void - */ - public function upgradeFrom2_2To2_3() - { - $this->execSQL($this->getUpgradeFile('2.2')); - $this->updateCases(); - $this->updateActivatedCountOfBug(); - if(!$this->isError()) $this->setting->updateVersion('2.3'); - } - - /** - * Upgrade from 2.3 to 2.4. - * - * @access public - * @return void - */ - public function upgradeFrom2_3To2_4() - { - $this->execSQL($this->getUpgradeFile('2.3')); - if(!$this->isError()) $this->setting->updateVersion('2.4'); - } - - /** - * Upgrade from 2.4 to 3.0.beta1. - * - * @access public - * @return void - */ - public function upgradeFrom2_4To3_0_beta1() - { - $this->execSQL($this->getUpgradeFile('2.4')); - if(!$this->isError()) $this->setting->updateVersion('3.0.beta1'); - } - - /** - * Upgrade from 3_0_beta1To3_0_beta2 - * - * @access public - * @return void - */ - public function upgradeFrom3_0_beta1To3_0_beta2() - { - $this->execSQL($this->getUpgradeFile('3.0.beta1')); - $this->updateAction(); - $this->setOrderData(); - if(!$this->isError()) $this->setting->updateVersion('3.0.beta2'); - } - - /** - * Upgrade from 3_0_beta2To3_0_stable - * - * @access public - * @return void - */ - public function upgradeFrom3_0_beta2To3_0_stable() - { - if(!$this->isError()) $this->setting->updateVersion('3.0.stable'); - } - - /** - * Upgrade from 3.0 to 3.1. - * - * @access public - * @return void - */ - public function upgradeFrom3_0To3_1() - { - if(!$this->isError()) $this->setting->updateVersion('3.1'); - } - - /** - * Upgrade from 3.1 to 3.2. - * - * @access public - * @return void - */ - public function upgradeFrom3_1To3_2() - { - $this->execSQL($this->getUpgradeFile('3.1')); - if(!$this->isError()) $this->setting->updateVersion('3.2'); - } - - /** - * Upgrade from 3.1 to 3.2. - * - * @access public - * @return void - */ - public function upgradeFrom3_2To3_2_1() - { - $this->execSQL($this->getUpgradeFile('3.2')); - if(!$this->isError()) $this->setting->updateVersion('3.2.1'); - } - - /** - * Upgrade from 3.2.1 to 3.3. - * - * @access public - * @return void - */ - public function upgradeFrom3_2_1To3_3() - { - $this->execSQL($this->getUpgradeFile('3.2.1')); - if(!$this->isError()) $this->setting->updateVersion('3.3'); - } - /** * Update company field. *