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
ecc16aab
Commit
ecc16aab
authored
Jun 25, 2004
by
Leigh B. Stoller
Browse files
Change the current_speed enum in the interfaces table to allow "0" as
a legal value; when interfaces are not in use, set the speed to 0.
parent
4c0cff6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
ecc16aab
...
...
@@ -526,7 +526,7 @@ CREATE TABLE interfaces (
interface_type
varchar
(
30
)
default
NULL
,
iface
text
NOT
NULL
,
role
enum
(
'ctrl'
,
'expt'
,
'jail'
,
'fake'
,
'other'
,
'gw'
)
default
NULL
,
current_speed
enum
(
'
1
00'
,
'10'
,
'1000'
)
NOT
NULL
default
'100'
,
current_speed
enum
(
'0
'
,
'1
0'
,
'10
0
'
,
'1000'
)
NOT
NULL
default
'100'
,
duplex
enum
(
'full'
,
'half'
)
NOT
NULL
default
'full'
,
rtabid
smallint
(
5
)
unsigned
NOT
NULL
default
'0'
,
vnode_id
varchar
(
32
)
default
NULL
,
...
...
sql/database-migrate.txt
View file @
ecc16aab
...
...
@@ -1734,3 +1734,10 @@ last_net_act,last_cpu_act,last_ext_act);
alter table experiments add modelnetedge_osname varchar(20) \
default NULL after modelnetcore_osname;
1.262: Change the current_speed enum in the interfaces table to allow "0"
as a legal value; when interfaces are not in use, set the speed
to 0.
alter table interfaces change current_speed \
current_speed enum('0','10','100','1000') \
NOT NULL default '0';
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