Commit ffc754bc authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

More DB tweaks for secure dataset transfer between clusters.

parent d53b8622
......@@ -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;
......
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:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment