Commit 121400f8 authored by Robert Ricci's avatar Robert Ricci

Added a 'role' column to the newnodes table.

parent 399f43ad
......@@ -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`
--
......
......@@ -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';
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