Commit 060cd3f5 authored by Leigh B Stoller's avatar Leigh B Stoller

Add a table to store changes to node control IP addresses. Just so we do

not lose the info, as for the 232 nodes at Wisconsin that are getting
new IPs.
parent 0a13dd2e
...@@ -2950,6 +2950,19 @@ CREATE TABLE `interfaces` ( ...@@ -2950,6 +2950,19 @@ CREATE TABLE `interfaces` (
KEY `role` (`role`) KEY `role` (`role`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1; ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `node_ip_changes`
--
DROP TABLE IF EXISTS `node_ip_changes`;
CREATE TABLE `node_ip_changes` (
`node_id` varchar(32) NOT NULL default '',
`oldIP` varchar(15) default NULL,
`newIP` varchar(15) default NULL,
`changed` datetime NOT NULL default '0000-00-00 00:00:00'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --
-- Table structure for table `interfaces_rf_limit` -- Table structure for table `interfaces_rf_limit`
-- --
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBTableExists("node_ip_changes")) {
DBQueryFatal("CREATE TABLE `node_ip_changes` (".
" `node_id` varchar(32) NOT NULL default '', ".
" `oldIP` varchar(15) default NULL, ".
" `newIP` varchar(15) default NULL, ".
" `changed` datetime NOT NULL default ".
" '0000-00-00 00:00:00' ".
") 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