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
73c7a852
Commit
73c7a852
authored
May 10, 2012
by
Leigh B Stoller
Browse files
Oops, left out an index I needed.
parent
12e1258c
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
73c7a852
...
...
@@ -2378,7 +2378,8 @@ CREATE TABLE `node_history` (
PRIMARY
KEY
(
`history_id`
),
KEY
`node_id`
(
`node_id`
,
`history_id`
),
INDEX
`exptidx`
(
`exptidx`
),
INDEX
`stamp`
(
`stamp`
)
INDEX
`stamp`
(
`stamp`
),
INDEX
`cnet_ip`
(
`cnet_ip`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
--
...
...
sql/updates/4/289
View file @
73c7a852
...
...
@@ -16,6 +16,10 @@ sub DoUpdate($$$)
DBQueryFatal("alter table node_history add " .
" INDEX stamp (stamp)");
}
if (!DBKeyExists("node_history", "cnet_ip")) {
DBQueryFatal("alter table node_history add " .
" INDEX cnet_ip (cnet_ip)");
}
return 0;
}
...
...
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