Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
b5a1ffdd
Commit
b5a1ffdd
authored
Apr 17, 2003
by
Mac Newbold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add node_id to state_triggers table, and change its primary key.
parent
95c08b45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
sql/database-create.sql
sql/database-create.sql
+2
-1
sql/database-migrate.txt
sql/database-migrate.txt
+10
-1
No files found.
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
Markdown
is supported
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