Commit 9e8d115d authored by Leigh B Stoller's avatar Leigh B Stoller

Now that we can delete image versions, need to be able to tell the

image server to delete versions.
parent 6546b21c
......@@ -2319,8 +2319,8 @@ DROP TABLE IF EXISTS `image_deletions`;
CREATE TABLE `image_deletions` (
`urn` varchar(128) default NULL,
`image_uuid` varchar(40) NOT NULL default '',
`deleted` datetime default NULL,
PRIMARY KEY (`image_uuid`)
`version` int(8) unsigned default NULL,
`deleted` datetime default NULL
use strict;
use libdb;
sub DoUpdate($$$)
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("image_deletions", "version")) {
DBQueryFatal("alter table image_deletions add ".
" `version` int(8) unsigned default NULL ".
" after image_uuid");
DBQueryFatal("alter table image_deletions drop primary key");
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