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
dc8343aa
Commit
dc8343aa
authored
Mar 08, 2007
by
Leigh B. Stoller
Browse files
Hmm, I forgot about the experiment_templates table!
parent
8f459f37
Changes
1
Hide whitespace changes
Inline
Side-by-side
sql/step3_newids.pl
View file @
dc8343aa
...
...
@@ -231,6 +231,17 @@ if (! TableChanged("experiment_templates", "exptidx")) {
UpdateTablePidEid
("
experiment_templates
",
"
exptidx
",
"
pid
",
"
eid
");
DBQueryFatal
("
unlock tables
");
# experiment_templates
DBQueryFatal
("
lock tables experiment_templates write
");
if
(
!
TableChanged
("
experiment_templates
",
"
pid_idx
"))
{
DBQueryFatal
("
alter table experiment_templates
"
.
"
add pid_idx mediumint(8) unsigned NOT NULL default '0' after uid_idx,
"
.
"
add gid_idx mediumint(8) unsigned NOT NULL default '0' after pid_idx
");
}
UpdateTablePidGid
("
experiment_templates
",
"
pid_idx
",
"
gid_idx
",
"
pid
",
"
gid
");
DBQueryFatal
("
unlock tables
");
# firewall_rules
DBQueryFatal
("
lock tables firewall_rules write
");
if
(
!
TableChanged
("
firewall_rules
",
"
exptidx
"))
{
...
...
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