All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 212cb9b0 authored by Leigh B Stoller's avatar Leigh B Stoller

Add a timestamp field to schedule destruction of a reservation. Note

that we do not want to deactivate or change the "end" time of the
reservation, in case we want to abort self destruction. Insert
Star Trek reference here:
parent b0da07a3
......@@ -2137,6 +2137,7 @@ CREATE TABLE `future_reservations` (
`type` varchar(30) NOT NULL DEFAULT '',
`start` datetime DEFAULT NULL,
`end` datetime DEFAULT NULL,
`destruct` datetime DEFAULT NULL,
`uid` varchar(8) NOT NULL DEFAULT '',
`uid_idx` mediumint(8) unsigned NOT NULL DEFAULT '0',
`notes` mediumtext,
......
#
# Add a timestamp field to schedule destruction of a reservation. Note
# that we do not want to deactivate or change the "end" time of the
# reservation, in case we want to abort self destruction. Insert silly
# Star Trek reference here:
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("future_reservations", "destruct")) {
DBQueryFatal("alter table future_reservations add ".
" `destruct` datetime DEFAULT NULL after `end`");
}
return 0;
}
1;
# 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