added update for todo table

This commit is contained in:
skeeter 2000-10-29 22:19:38 +00:00
parent c479d35346
commit d025dc13d3
3 changed files with 19 additions and 11 deletions

View File

@ -256,12 +256,12 @@
$db->query("alter table $table change $field $field int(11) NOT NULL");
}
function v0_9_2to0_9_3pre3(){
function v0_9_2to0_9_3pre4(){
global $currentver, $phpgw_info, $db;
$didupgrade = True;
// The 0.9.3pre1 is only temp until release
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1" || $currentver == "0.9.3pre2") {
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1" || $currentver == "0.9.3pre2" || $currentver == "0.9.3pre3") {
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1") {
update_owner("addressbook","ab_owner");
update_owner("todo","todo_owner");
@ -284,12 +284,16 @@
$db->query("drop table users_newsgroups");
$db->query("update applications set app_tables='newsgroups' where app_name='nntp'");
}
$currentver = "0.9.3pre3";
}
if ($currentver == "0.9.3pre3") {
$db->query("alter table todo add todo_parent_id int(11) DEFAULT '0' NOT NULL");
$currentver = "0.9.3pre4";
}
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.2 to 0.9.3pre3 is completed.</td>\n";
echo " <td>Upgrade from 0.9.2 to 0.9.3pre4 is completed.</td>\n";
echo " </tr>\n";
$currentver = "0.9.3pre3";
}
}
@ -304,7 +308,7 @@
v9052000to9072000();
v9072000to0_9_1();
v0_9_1to0_9_2();
v0_9_2to0_9_3pre3();
v0_9_2to0_9_3pre4();
$db->query("update applications set app_version='".$phpgw_info["server"]["version"]."' where (app_name='admin' or app_name='filemanager' or app_name='addressbook' or app_name='todo' or app_name='calendar' or app_name='email' or app_name='nntp' or app_name='cron_apps')");

View File

@ -245,12 +245,12 @@
$db->query("alter table $table change $field $field int(11) NOT NULL");
}
function v0_9_2to0_9_3pre3(){
function v0_9_2to0_9_3pre4(){
global $currentver, $phpgw_info, $db;
$didupgrade = True;
// The 0.9.3pre1 is only temp until release
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1" || $currentver == "0.9.3pre2") {
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1" || $currentver == "0.9.3pre2" || $currentver == "0.9.3pre3") {
if ($currentver == "0.9.2" || $currentver == "0.9.3pre1") {
update_owner("addressbook","ab_owner");
update_owner("todo","todo_owner");
@ -273,12 +273,16 @@
$db->query("drop table users_newsgroups");
$db->query("update applications set app_tables='newsgroups' where app_name='nntp'");
}
$currentver = "0.9.3pre3";
}
if ($currentver == "0.9.3pre3") {
$db->query("alter table todo add todo_parent_id int DEFAULT 0 NOT NULL");
$currentver = "0.9.3pre4";
}
echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.2 to 0.9.3pre3 is completed.</td>\n";
echo " <td>Upgrade from 0.9.2 to $currentver is completed.</td>\n";
echo " </tr>\n";
$currentver = "0.9.3pre3";
}
}
@ -293,7 +297,7 @@
v9052000to9072000();
v9072000to0_9_1();
v0_9_1to0_9_2();
v0_9_2to0_9_3pre3();
v0_9_2to0_9_3pre4();
$db->query("update applications set app_version='".$phpgw_info["server"]["version"]."' where (app_name='admin' or app_name='filemanager' or app_name='addressbook' or app_name='todo' or app_name='calendar' or app_name='email' or app_name='nntp' or app_name='cron_apps')");
if (!$didupgrade == True){

View File

@ -1 +1 @@
<?php $phpgw_info["server"]["version"] = "0.9.3pre3"; ?>
<?php $phpgw_info["server"]["version"] = "0.9.3pre4"; ?>