Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
341739ca
Commit
341739ca
authored
Dec 06, 2012
by
Jonathon Duerig
Browse files
Add IP field to new_interfaces table
parent
0d7c3223
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
341739ca
...
...
@@ -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
;
...
...
sql/updates/4/323
0 → 100644
View file @
341739ca
#
# 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;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment