Commit 36442af2 authored by Leigh Stoller's avatar Leigh Stoller

Fix subboss_id to match node_id definition.

parent 2ae8c5ad
......@@ -4573,7 +4573,7 @@ DROP TABLE IF EXISTS `subbosses`;
CREATE TABLE `subbosses` (
`node_id` varchar(32) NOT NULL default '',
`service` varchar(20) NOT NULL default '',
`subboss_id` varchar(20) NOT NULL default '',
`subboss_id` varchar(32) NOT NULL default '',
`disabled` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`node_id`,`service`),
KEY `active` (`disabled`,`subboss_id`)
......
#
# Make subboss_id size consistent.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
my $type = DBSlotType("subbosses", "subboss_id");
if (! ($type =~ /32/)) {
DBQueryFatal("alter table subbosses ".
" change `subboss_id` `subboss_id` ".
" varchar(32) NOT NULL default ''");
}
return 0;
}
1;
# 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