diff --git a/sql/database-create.sql b/sql/database-create.sql index b5f5d9fbc0ed10cce57e27223b8da560e6858bd9..ae29772a92f94922ba334b068e367fadbe829201 100644 --- a/sql/database-create.sql +++ b/sql/database-create.sql @@ -283,9 +283,9 @@ CREATE TABLE experiment_stats ( idle_swaps smallint(5) unsigned default '0', swapin_duration int(10) unsigned default '0', batch tinyint(3) unsigned default '0', - elabinelab tinyint(1) unsigned default '0', + elabinelab tinyint(1) NOT NULL default '0', elabinelab_exptidx int(10) unsigned default NULL, - security_level tinyint(1) NOT NULL default '0', + security_level tinyint(1) NOT NULL default '0', PRIMARY KEY (eid,pid,exptidx), KEY exptidx (exptidx), KEY rsrcidx (rsrcidx) @@ -982,6 +982,7 @@ CREATE TABLE node_types ( issimnode tinyint(4) NOT NULL default '0', simnode_capacity smallint(5) unsigned NOT NULL default '0', trivlink_maxspeed int(11) unsigned NOT NULL default '0', + isrebootable tinyint(1) default '1', PRIMARY KEY (type) ) TYPE=MyISAM; diff --git a/sql/database-migrate.txt b/sql/database-migrate.txt index 62da59ede3adb4159d2f54d49267e7d0384dc8bc..c6f798fc6f8229506231dca2940b42cea760459e 100644 --- a/sql/database-migrate.txt +++ b/sql/database-migrate.txt @@ -2164,3 +2164,11 @@ last_net_act,last_cpu_act,last_ext_act); alter table reserved add \ inner_elab_role enum('boss','ops','node') default NULL \ after cnet_vlan; + +1.287: Add a 'rebootable' bit to the node_types table to indicate that a + given type should not be attempted to be rebooted. This should be + temporary, and will go away when we have node_capabilities: + + alter table node_types add (isrebootable tinyint(1) default '1'); + +