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
ffc754bc
Commit
ffc754bc
authored
Aug 03, 2016
by
Leigh B Stoller
Browse files
More DB tweaks for secure dataset transfer between clusters.
parent
d53b8622
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
ffc754bc
...
...
@@ -2329,6 +2329,7 @@ CREATE TABLE `image_versions` (
`origin_neednotify`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`origin_needupdate`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`authority_urn`
varchar
(
128
)
default
NULL
,
`credential_string`
text
,
`logfileid`
varchar
(
40
)
default
NULL
,
`noexport`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`noclone`
tinyint
(
1
)
NOT
NULL
default
'0'
,
...
...
@@ -2360,6 +2361,7 @@ CREATE TABLE `image_updates` (
`updater_idx`
mediumint
(
8
)
unsigned
NOT
NULL
default
'0'
,
`updater_urn`
varchar
(
128
)
default
NULL
,
`url`
varchar
(
255
)
NOT
NULL
default
''
,
`credential_string`
text
,
PRIMARY
KEY
(
`imageid`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
...
...
sql/updates/4/527
0 → 100644
View file @
ffc754bc
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("image_versions", "credential_string")) {
DBQueryFatal("alter table image_versions ".
" add `credential_string` text ".
" after authority_urn");
}
if (!DBSlotExists("image_updates", "credential_string")) {
DBQueryFatal("alter table image_updates ".
" add `credential_string` text");
}
return 0;
}
# Local Variables:
# mode:perl
# End:
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