Commit f2b8de83 authored by Gary Wong's avatar Gary Wong

Record reservation requests awaiting approval.

parent e7ce61ca
......@@ -2011,6 +2011,8 @@ CREATE TABLE `future_reservations` (
`notes` mediumtext,
`admin_notes` mediumtext,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`approved` datetime DEFAULT NULL,
`approver` varchar(8) DEFAULT NULL,
PRIMARY KEY (`idx`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("future_reservations", "approved")) {
DBQueryFatal("ALTER TABLE future_reservations ADD " .
" `approved` datetime DEFAULT NULL AFTER `created`");
}
if (!DBSlotExists("future_reservations", "approver")) {
DBQueryFatal("ALTER TABLE future_reservations ADD " .
" `approver` varchar(8) DEFAULT NULL AFTER `approved`");
}
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