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
1f2956b8
Commit
1f2956b8
authored
Jul 17, 2003
by
Robert Ricci
Browse files
Chage the new_interfaces table to contain card numbers, rather than
iface names
parent
d0e9a809
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
1f2956b8
...
...
@@ -568,13 +568,13 @@ CREATE TABLE mode_transitions (
CREATE
TABLE
new_interfaces
(
new_node_id
int
(
11
)
NOT
NULL
default
'0'
,
iface
varchar
(
1
0
)
NOT
NULL
default
''
,
card
int
(
1
1
)
NOT
NULL
default
'
0
'
,
mac
varchar
(
12
)
NOT
NULL
default
''
,
interface_type
varchar
(
15
)
default
NULL
,
switch_id
varchar
(
10
)
default
NULL
,
switch_card
tinyint
(
3
)
default
NULL
,
switch_port
tinyint
(
3
)
default
NULL
,
PRIMARY
KEY
(
new_node_id
,
iface
)
PRIMARY
KEY
(
new_node_id
,
card
)
)
TYPE
=
MyISAM
;
--
...
...
sql/database-migrate.txt
View file @
1f2956b8
...
...
@@ -770,3 +770,12 @@ last_net_act,last_cpu_act,last_ext_act);
alter table new_interfaces add column switch_id char(10);
alter table new_interfaces add column switch_card tinyint(3);
alter table new_interfaces add column switch_port tinyint(3);
1.163: Chage the new_interfaces table to contain card numbers, rather than
iface names:
alter table new_interfaces drop primary key;
alter table new_interfaces drop column iface;
alter table new_interfaces add column card int not null after
new_node_id;
alter table new_interfaces add primary key (new_node_id,card);
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