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
b5a1ffdd
Commit
b5a1ffdd
authored
Apr 17, 2003
by
Mac Newbold
Browse files
Add node_id to state_triggers table, and change its primary key.
parent
95c08b45
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
b5a1ffdd
...
...
@@ -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
;
--
...
...
sql/database-migrate.txt
View file @
b5a1ffdd
...
...
@@ -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);
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