Commit b5a1ffdd authored by Mac Newbold's avatar Mac Newbold

Add node_id to state_triggers table, and change its primary key.

parent 95c08b45
......@@ -944,10 +944,11 @@ CREATE TABLE state_transitions (
--
CREATE TABLE state_triggers (
node_id varchar(10) NOT NULL default '',
op_mode varchar(20) NOT NULL default '',
state varchar(20) NOT NULL default '',
trigger tinytext NOT NULL,
PRIMARY KEY (op_mode,state)
PRIMARY KEY (node_id,op_mode,state)
) TYPE=MyISAM;
--
......
......@@ -185,4 +185,13 @@ last_net_act,last_cpu_act,last_ext_act);
alter table reserved add unique vname (pid,eid,vname);
1.128: Add usr_country column to users table.
No recommended migration commands.
\ No newline at end of file
No recommended migration commands.
1.129: Add node_id to state_triggers table, and change its primary key.
alter table state_triggers add
node_id varchar(10) not null default '' first;
update state_triggers set node_id="*";
alter table state_triggers drop primary key;
alter table state_triggers add primary key (node_id,op_mode,state);
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