Commit c03281ba authored by Leigh B Stoller's avatar Leigh B Stoller

Ack, back out last change. I hated it.

parent 9e8d115d
...@@ -2319,8 +2319,8 @@ DROP TABLE IF EXISTS `image_deletions`; ...@@ -2319,8 +2319,8 @@ DROP TABLE IF EXISTS `image_deletions`;
CREATE TABLE `image_deletions` ( CREATE TABLE `image_deletions` (
`urn` varchar(128) default NULL, `urn` varchar(128) default NULL,
`image_uuid` varchar(40) NOT NULL default '', `image_uuid` varchar(40) NOT NULL default '',
`version` int(8) unsigned default NULL, `deleted` datetime default NULL,
`deleted` datetime default NULL PRIMARY KEY (`image_uuid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1; ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --
......
...@@ -5,12 +5,9 @@ sub DoUpdate($$$) ...@@ -5,12 +5,9 @@ sub DoUpdate($$$)
{ {
my ($dbhandle, $dbname, $version) = @_; my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("image_deletions", "version")) { #
DBQueryFatal("alter table image_deletions add ". # This has been nullified; made a mistake.
" `version` int(8) unsigned default NULL ". #
" after image_uuid");
}
DBQueryFatal("alter table image_deletions drop primary key");
return 0; return 0;
} }
......
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