Commit 9e638e0a authored by Leigh Stoller's avatar Leigh Stoller

Add uuid to reservation_history, we should be storing the original

uuid with the history entry. This commit added the uuid, I will push
up the code that sets/saves it later.
parent 02a8d022
......@@ -4631,7 +4631,9 @@ CREATE TABLE `reservation_history` (
`uid` varchar(8) NOT NULL DEFAULT '',
`notes` mediumtext,
`admin_notes` mediumtext,
KEY `start` (`start`)
`uuid` varchar(40) NOT NULL default '',
KEY `start` (`start`),
KEY `uuid` (`uuid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
......
use strict;
use libdb;
use emdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("reservation_history", "uuid")) {
DBQueryFatal("alter table reservation_history add ".
" `uuid` varchar(40) NOT NULL default ''");
DBQueryFatal("alter table reservation_history add ".
" KEY `uuid` (`uuid`)");
}
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