Commit d718cbdd authored by Gary Wong's avatar Gary Wong

Add interfaces_rf_limit table, for use by RF monitoring.

parent 0737e7f2
......@@ -2876,6 +2876,20 @@ CREATE TABLE `interfaces` (
KEY `role` (`role`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `interfaces_rf_limit`
--
DROP TABLE IF EXISTS `interfaces_rf_limit`;
CREATE TABLE `interfaces_rf_limit` (
`node_id` varchar(32) NOT NULL DEFAULT '',
`iface` text NOT NULL,
`freq_low` bigint(12) NOT NULL DEFAULT '0',
`freq_high` bigint(12) NOT NULL DEFAULT '0',
`power` float NOT NULL DEFAULT '0',
PRIMARY KEY (`node_id`,`iface`(128),`freq_low`,`freq_high`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `ipport_ranges`
--
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if( !DBTableExists( "interfaces_rf_limit" ) ) {
DBQueryFatal( "CREATE TABLE `interfaces_rf_limit` ( " .
" `node_id` varchar(32) NOT NULL default '', " .
" `iface` text NOT NULL, " .
" `freq_low` bigint(12) NOT NULL default '0', " .
" `freq_high` bigint(12) NOT NULL default '0', " .
" `power` float NOT NULL default '0', " .
" PRIMARY KEY( `node_id`, `iface`(128), `freq_low`, " .
" `freq_high`)" .
") ENGINE=MyISAM DEFAULT CHARSET=latin1" );
}
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