laying out code for next version

This commit is contained in:
seek3r 2000-11-25 08:52:45 +00:00
parent eedee9d567
commit 4d9333d105
2 changed files with 90 additions and 4 deletions

View File

@ -551,10 +551,53 @@
echo " </tr>\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 " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.5 to $currentver is completed.</td>\n";
echo " </tr>\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 " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.6 to $currentver is completed.</td>\n";
echo " </tr>\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();
?>

View File

@ -561,10 +561,53 @@
echo " </tr>\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 " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.5 to $currentver is completed.</td>\n";
echo " </tr>\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 " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.6 to $currentver is completed.</td>\n";
echo " </tr>\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();
?>