Commit a8157083 authored by Gary Wong's avatar Gary Wong
Browse files

Add future_reservation_attributes table.

Needed for reservation metadata, useful for elastic slice node
assignment and hopefully other things.
parent 8f839707
......@@ -1916,6 +1916,18 @@ CREATE TABLE `fs_resources` (
KEY `fileidx` (`fileidx`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `future_reservation_attributes`
--
DROP TABLE IF EXISTS `future_reservation_attributes`;
CREATE TABLE `future_reservation_attributes` (
`reservation_idx` mediumint(8) unsigned NOT NULL,
`attrkey` varchar(32) NOT NULL,
`attrvalue` tinytext,
PRIMARY KEY (`reservation_idx`,`attrkey`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `future_reservations`
--
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBTableExists("future_reservation_attributes")) {
DBQueryFatal( "CREATE TABLE `future_reservation_attributes` ( " .
" `reservation_idx` mediumint(8) unsigned NOT NULL, " .
" `attrkey` varchar(32) NOT NULL, " .
" `attrvalue` tinytext, " .
" PRIMARY KEY (`reservation_idx`,`attrkey`) " .
") ENGINE=MyISAM DEFAULT CHARSET=latin1" );
}
return 0;
}
# Local Variables:
# mode:perl
# End:
Supports Markdown
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