Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
cb352924
Commit
cb352924
authored
Mar 14, 2016
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add packing_strategy to the experiments table.
parent
a688e38f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
sql/database-create.sql
sql/database-create.sql
+1
-0
sql/database-fill.sql
sql/database-fill.sql
+1
-0
sql/updates/4/498
sql/updates/4/498
+27
-0
No files found.
sql/database-create.sql
View file @
cb352924
...
...
@@ -1648,6 +1648,7 @@ CREATE TABLE `experiments` (
`uselinkdelays`
tinyint
(
4
)
NOT
NULL
default
'0'
,
`forcelinkdelays`
tinyint
(
4
)
NOT
NULL
default
'0'
,
`multiplex_factor`
smallint
(
5
)
default
NULL
,
`packing_strategy`
enum
(
'pack'
,
'balance'
)
default
NULL
,
`uselatestwadata`
tinyint
(
4
)
NOT
NULL
default
'0'
,
`usewatunnels`
tinyint
(
4
)
NOT
NULL
default
'1'
,
`wa_delay_solverweight`
float
default
'0'
,
...
...
sql/database-fill.sql
View file @
cb352924
...
...
@@ -975,6 +975,7 @@ REPLACE INTO table_regex VALUES ('experiments','ipassign_args','text','regex','^
REPLACE
INTO
table_regex
VALUES
(
'experiments'
,
'expt_name'
,
'text'
,
'redirect'
,
'default:fulltext'
,
1
,
255
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'experiments'
,
'dpdb'
,
'int'
,
'redirect'
,
'default:tinyint'
,
0
,
1
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'experiments'
,
'nonfsmounts'
,
'int'
,
'redirect'
,
'default:tinyint'
,
0
,
1
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'experiments'
,
'packing_strategy'
,
'text'
,
'regex'
,
'^(pack|balance)$'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'experiments'
,
'description'
,
'text'
,
'redirect'
,
'default:fulltext'
,
1
,
256
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'experiments'
,
'idle_ignore'
,
'int'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
...
...
sql/updates/4/498
0 → 100644
View file @
cb352924
#
# Add packing strategy to experiments table.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("experiments", "packing_strategy")) {
DBQueryFatal("alter table experiments add ".
" `packing_strategy` enum('pack','balance') default NULL ".
" after multiplex_factor");
}
DBQueryFatal("REPLACE INTO table_regex VALUES ".
" ('experiments','packing_strategy','text','regex',".
" '^(pack|balance)\$', ".
" 0,0,NULL)");
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
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