Skip to content
GitLab
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
121400f8
Commit
121400f8
authored
Aug 23, 2004
by
Robert Ricci
Browse files
Added a 'role' column to the newnodes table.
parent
399f43ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
121400f8
...
...
@@ -147,16 +147,6 @@ CREATE TABLE event_eventtypes (
PRIMARY
KEY
(
idx
)
)
TYPE
=
MyISAM
;
--
-- Table structure for table `event_objecttypes`
--
CREATE
TABLE
event_objecttypes
(
idx
smallint
(
5
)
unsigned
NOT
NULL
default
'0'
,
type
tinytext
NOT
NULL
,
PRIMARY
KEY
(
idx
)
)
TYPE
=
MyISAM
;
--
-- Table structure for table `event_groups`
--
...
...
@@ -172,6 +162,16 @@ CREATE TABLE event_groups (
KEY
agent_name
(
agent_name
)
)
TYPE
=
MyISAM
;
--
-- Table structure for table `event_objecttypes`
--
CREATE
TABLE
event_objecttypes
(
idx
smallint
(
5
)
unsigned
NOT
NULL
default
'0'
,
type
tinytext
NOT
NULL
,
PRIMARY
KEY
(
idx
)
)
TYPE
=
MyISAM
;
--
-- Table structure for table `eventlist`
--
...
...
@@ -723,6 +723,7 @@ CREATE TABLE new_nodes (
contact
tinytext
,
phone
tinytext
,
room
varchar
(
32
)
default
NULL
,
role
varchar
(
32
)
NOT
NULL
default
'testnode'
,
PRIMARY
KEY
(
new_node_id
)
)
TYPE
=
MyISAM
;
...
...
@@ -1667,7 +1668,7 @@ CREATE TABLE virt_agents (
CREATE
TABLE
virt_lan_lans
(
pid
varchar
(
12
)
NOT
NULL
default
''
,
eid
varchar
(
32
)
NOT
NULL
default
''
,
idx
int
(
11
)
NOT
NULL
auto_increment
,
idx
int
(
11
)
NOT
NULL
auto_increment
,
vname
varchar
(
32
)
NOT
NULL
default
''
,
PRIMARY
KEY
(
pid
,
eid
,
idx
),
UNIQUE
KEY
vname
(
pid
,
eid
,
vname
)
...
...
@@ -1700,7 +1701,6 @@ CREATE TABLE virt_lan_settings (
PRIMARY
KEY
(
pid
,
eid
,
vname
,
capkey
)
)
TYPE
=
MyISAM
;
--
-- Table structure for table `virt_lans`
--
...
...
sql/database-migrate.txt
View file @
121400f8
...
...
@@ -1842,3 +1842,8 @@ last_net_act,last_cpu_act,last_ext_act);
insert into virt_lan_lans (pid, eid, vname)
select distinct pid,eid,vname from virt_lans;
1.270: Add a 'role' column to the newnodes table so that we can add nodes
other than experiment nodes (such as ops) using the newnode system.
alter table new_nodes add column role varchar(32) not null \
default 'testnode';
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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