todo updates

This commit is contained in:
loge 2000-11-19 19:47:30 +00:00
parent 8c2c643d6c
commit 4a2f2cba77
4 changed files with 26 additions and 2 deletions

View File

@ -158,7 +158,8 @@
todo_pri int(11), todo_pri int(11),
todo_status int(11), todo_status int(11),
todo_datecreated int(11), todo_datecreated int(11),
todo_datedue int(11), todo_startdate int(11),
todo_enddate int(11),
PRIMARY KEY (todo_id) PRIMARY KEY (todo_id)
)"; )";
$db->query($sql); $db->query($sql);

View File

@ -329,6 +329,17 @@
$currentver = "0.9.4pre3"; $currentver = "0.9.4pre3";
update_version_table(); update_version_table();
} }
if ($currentver == "0.9.4pre3") {
$sql = "ALTER TABLE todo ADD todo_startdate int(11) not null";
$db->query($sql);
$sql "ALTER TABLE todo CHANGE todo_datedue todo_enddate int(11) not null";
$db->query($sql);
$currentver = "0.9.4pre4";
update_version_table();
}
echo " <tr bgcolor=\"e6e6e6\">\n"; echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.3 to $currentver is completed.</td>\n"; echo " <td>Upgrade from 0.9.3 to $currentver is completed.</td>\n";
echo " </tr>\n"; echo " </tr>\n";

View File

@ -137,7 +137,8 @@
todo_pri int, todo_pri int,
todo_status int, todo_status int,
todo_datecreated int, todo_datecreated int,
todo_datedue int todo_startdate int,
todo_enddate int
)"; )";
$db->query($sql); $db->query($sql);

View File

@ -330,6 +330,17 @@
$currentver = "0.9.4pre3"; $currentver = "0.9.4pre3";
update_version_table(); update_version_table();
} }
if ($currentver == "0.9.4pre3") {
$sql = "ALTER TABLE todo ADD todo_startdate int not null";
$db->query($sql);
$sql "ALTER TABLE todo CHANGE todo_datedue todo_enddate int not null";
$db->query($sql);
$currentver = "0.9.4pre4";
update_version_table();
}
echo " <tr bgcolor=\"e6e6e6\">\n"; echo " <tr bgcolor=\"e6e6e6\">\n";
echo " <td>Upgrade from 0.9.3 to $currentver is completed.</td>\n"; echo " <td>Upgrade from 0.9.3 to $currentver is completed.</td>\n";
echo " </tr>\n"; echo " </tr>\n";