Commit 0035e93b authored by Leigh B Stoller's avatar Leigh B Stoller

Add apt_aggregate_nodetypes table.

parent c3375835
......@@ -54,6 +54,20 @@ CREATE TABLE `active_checkups` (
PRIMARY KEY (`object`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `apt_aggregate_nodetypes`
--
DROP TABLE IF EXISTS `apt_aggregate_nodetypes`;
CREATE TABLE `apt_aggregate_nodetypes` (
`urn` varchar(128) NOT NULL default '',
`type` varchar(30) NOT NULL default '',
`count` int(11) default '0',
`free` int(11) default '0',
`updated` datetime default NULL,
PRIMARY KEY (`urn`,`type`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `apt_aggregates`
--
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBTableExists("apt_aggregate_nodetypes")) {
DBQueryFatal("CREATE TABLE `apt_aggregate_nodetypes` ( ".
" `urn` varchar(128) NOT NULL default '', ".
" `type` varchar(30) NOT NULL default '', ".
" `count` int(11) default '0', ".
" `free` int(11) default '0', ".
" `updated` datetime default NULL, ".
" PRIMARY KEY (`urn`,`type`) ".
") ENGINE=MyISAM DEFAULT CHARSET=latin1");
}
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