Commit 0c638b51 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Lets record who updated the image when it is copied back to the

origin cluster; this change just added the slot we need in the DB.
parent 0c653722
......@@ -2183,6 +2183,7 @@ CREATE TABLE `image_versions` (
DROP TABLE IF EXISTS `image_updates`;
CREATE TABLE `image_updates` (
`imageid` int(8) unsigned NOT NULL default '0',
`updater_urn` varchar(128) default NULL,
`url` varchar(255) NOT NULL default '',
PRIMARY KEY (`imageid`)
use strict;
use libdb;
sub DoUpdate($$$)
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("image_updates", "updater_urn")) {
DBQueryFatal("ALTER TABLE image_updates ADD ".
" `updater_urn` varchar(128) default NULL AFTER imageid");
return 0;
# Local Variables:
# mode:perl
# End:
Markdown is supported
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