Commit 2f975b99 authored by Leigh Stoller's avatar Leigh Stoller

Need to also record deleted reservations in the history table, since

people delete used reservations before the expire, and currently we are
only recording expired reservations. So we need a deleted slot in the
history table to tell the difference.
parent 76af762a
......@@ -4627,6 +4627,7 @@ CREATE TABLE `reservation_history` (
`nodes` smallint(5) NOT NULL DEFAULT '0',
`type` varchar(30) NOT NULL DEFAULT '',
`created` datetime DEFAULT NULL,
`deleted` datetime DEFAULT NULL,
`start` datetime DEFAULT NULL,
`end` datetime DEFAULT NULL,
`uid` varchar(8) NOT NULL DEFAULT '',
......
use strict;
use libdb;
use emdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("reservation_history", "deleted")) {
DBQueryFatal("alter table reservation_history add ".
" `deleted` datetime DEFAULT NULL after created");
}
return 0;
}
# Local Variables:
# mode:perl
# End:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment