Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
3ca164ac
Commit
3ca164ac
authored
Mar 12, 2015
by
Jonathon Duerig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add experiment index to address allocation table
parent
ee47b624
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
sql/database-create.sql
sql/database-create.sql
+1
-0
sql/updates/4/434
sql/updates/4/434
+21
-0
No files found.
sql/database-create.sql
View file @
3ca164ac
...
...
@@ -5113,6 +5113,7 @@ CREATE TABLE `virt_address_allocation` (
`pool_id`
varchar
(
32
)
NOT
NULL
default
''
,
`pid`
varchar
(
48
)
NOT
NULL
default
''
,
`eid`
varchar
(
32
)
NOT
NULL
default
''
,
`exptidx`
int
(
11
)
NOT
NULL
default
'0'
,
`count`
int
(
10
)
NOT
NULL
default
'0'
,
`restriction`
enum
(
'contiguous'
,
'cidr'
,
'any'
)
NOT
NULL
default
'any'
,
`version`
enum
(
'ipv4'
,
'ipv6'
)
NOT
NULL
default
'ipv4'
,
...
...
sql/updates/4/434
0 → 100644
View file @
3ca164ac
#
# Dataset stuff
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("virt_address_allocation", "exptidx")) {
DBQueryFatal("alter table virt_address_allocation add ".
" `exptidx` int(11) NOT NULL default 0 after `eid`");
}
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