Commit 1537a3ae authored by Mike Hibler's avatar Mike Hibler
Browse files

Add subboss_attributes table.

We will populate this with the info we currently hardwire in the
rc.d/3.mfrisbeed.sh startup script. Will pass to the subboss via
a new tmcd call or using the mothballed subboss XMLRPC interface.
parent 19af165b
......@@ -4607,6 +4607,19 @@ CREATE TABLE `state_triggers` (
PRIMARY KEY (`node_id`,`op_mode`,`state`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `subboss_attributes`
--
DROP TABLE IF EXISTS `subboss_attributes`;
CREATE TABLE `subboss_attributes` (
`subboss_id` varchar(32) NOT NULL default '',
`service` varchar(20) NOT NULL default '',
`attrkey` varchar(32) NOT NULL default '',
`attrvalue` tinytext,
PRIMARY KEY (`subboss_id`,`service`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `subboss_images`
--
......
#
# Add subboss_attributes table
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBTableExists("subboss_attributes")) {
DBQueryFatal("CREATE TABLE `subboss_attributes` ( ".
"`subboss_id` varchar(32) NOT NULL default '', ".
"`service` varchar(20) NOT NULL default '', ".
"`attrkey` varchar(32) NOT NULL default '', ".
"`attrvalue` tinytext, ".
"PRIMARY KEY (`subboss_id`,`service`) ".
") ENGINE=MyISAM DEFAULT CHARSET=latin1");
}
return 0;
}
1;
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