Commit 341739ca authored by Jonathon Duerig's avatar Jonathon Duerig

Add IP field to new_interfaces table

parent 0d7c3223
......@@ -2293,6 +2293,7 @@ CREATE TABLE `new_interfaces` (
`cable` smallint(6) default NULL,
`len` tinyint(4) default NULL,
`role` tinytext,
`IP` varchar(15) default NULL,
PRIMARY KEY (`new_interface_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
......
#
# Add IP slot to new_interfaces table
#
use strict;
use libdb;
my $impotent = 0;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("new_interfaces", "IP")) {
DBQueryFatal("alter table new_interfaces add ".
" `IP` varchar(15) default NULL");
}
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