From 4d9333d105a8474252d057100a84c5ab45063957 Mon Sep 17 00:00:00 2001 From: seek3r Date: Sat, 25 Nov 2000 08:52:45 +0000 Subject: [PATCH] laying out code for next version --- setup/sql/mysql_upgrade_beta.inc.php | 47 ++++++++++++++++++++++++++-- setup/sql/pgsql_upgrade_beta.inc.php | 47 ++++++++++++++++++++++++++-- 2 files changed, 90 insertions(+), 4 deletions(-) diff --git a/setup/sql/mysql_upgrade_beta.inc.php b/setup/sql/mysql_upgrade_beta.inc.php index 4b60e9d57e..2ddac1f919 100644 --- a/setup/sql/mysql_upgrade_beta.inc.php +++ b/setup/sql/mysql_upgrade_beta.inc.php @@ -551,10 +551,53 @@ echo " \n"; } } + function v0_9_5to0_9_6(){ + global $currentver, $phpgw_info, $db; + + if ($currentver == "0.9.5" || ereg ("^0\.9\.6pre", $currentver)){ + if ($currentver == "0.9.5") { + // upgrade code starts here + + // upgrade code ends here + $currentver = "0.9.6pre1"; + update_version_table(); + } + if ($currentver == "0.9.6pre1") { + $currentver = "0.9.6pre2"; + update_version_table(); + } + + echo " \n"; + echo " Upgrade from 0.9.5 to $currentver is completed.\n"; + echo " \n"; + } + } + function v0_9_6to0_9_7(){ + global $currentver, $phpgw_info, $db; + + if ($currentver == "0.9.6" || ereg ("^0\.9\.7pre", $currentver)){ + if ($currentver == "0.9.6") { + // upgrade code starts here + + // upgrade code ends here + $currentver = "0.9.7pre1"; + update_version_table(); + } + if ($currentver == "0.9.7pre1") { + $currentver = "0.9.7pre2"; + update_version_table(); + } + + echo " \n"; + echo " Upgrade from 0.9.6 to $currentver is completed.\n"; + echo " \n"; + } + } v0_9_1to0_9_2(); v0_9_2to0_9_3(); v0_9_3to0_9_4(); v0_9_4to0_9_5(); - -?> + v0_9_5to0_9_6(); + v0_9_6to0_9_7(); +?> \ No newline at end of file diff --git a/setup/sql/pgsql_upgrade_beta.inc.php b/setup/sql/pgsql_upgrade_beta.inc.php index c7c9733804..36ac84b124 100644 --- a/setup/sql/pgsql_upgrade_beta.inc.php +++ b/setup/sql/pgsql_upgrade_beta.inc.php @@ -561,10 +561,53 @@ echo " \n"; } } + function v0_9_5to0_9_6(){ + global $currentver, $phpgw_info, $db; + + if ($currentver == "0.9.5" || ereg ("^0\.9\.6pre", $currentver)){ + if ($currentver == "0.9.5") { + // upgrade code starts here + + // upgrade code ends here + $currentver = "0.9.6pre1"; + update_version_table(); + } + if ($currentver == "0.9.6pre1") { + $currentver = "0.9.6pre2"; + update_version_table(); + } + + echo " \n"; + echo " Upgrade from 0.9.5 to $currentver is completed.\n"; + echo " \n"; + } + } + function v0_9_6to0_9_7(){ + global $currentver, $phpgw_info, $db; + + if ($currentver == "0.9.6" || ereg ("^0\.9\.7pre", $currentver)){ + if ($currentver == "0.9.6") { + // upgrade code starts here + + // upgrade code ends here + $currentver = "0.9.7pre1"; + update_version_table(); + } + if ($currentver == "0.9.7pre1") { + $currentver = "0.9.7pre2"; + update_version_table(); + } + + echo " \n"; + echo " Upgrade from 0.9.6 to $currentver is completed.\n"; + echo " \n"; + } + } v0_9_1to0_9_2(); v0_9_2to0_9_3(); v0_9_3to0_9_4(); v0_9_4to0_9_5(); - -?> + v0_9_5to0_9_6(); + v0_9_6to0_9_7(); +?> \ No newline at end of file