Commit c0517087 authored by Leigh Stoller's avatar Leigh Stoller

Add a couple of slots for dealing with openstack utilization metrics.

parent 294fade1
......@@ -268,12 +268,14 @@ CREATE TABLE `apt_instances` (
`servername` tinytext,
`monitor_pid` int(11) default '0',
`needupdate` tinyint(3) NOT NULL default '0',
`isopenstack` tinyint(1) NOT NULL default '0',
`logfileid` varchar(40) default NULL,
`cert` mediumtext,
`privkey` mediumtext,
`rspec` mediumtext,
`params` mediumtext,
`manifest` mediumtext,
`openstack_utilization` mediumtext,
PRIMARY KEY (`uuid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "isopenstack")) {
DBQueryFatal("alter table apt_instances add ".
" `isopenstack` tinyint(1) NOT NULL default '0' ".
" after needupdate");
}
if (!DBSlotExists("apt_instances", "openstack_utilization")) {
DBQueryFatal("alter table apt_instances add ".
" `openstack_utilization` mediumtext");
}
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