Commit 655e8181 authored by Leigh Stoller's avatar Leigh Stoller

Tweak previous revision.

parent 697f6662
......@@ -2191,7 +2191,6 @@ CREATE TABLE `image_aliases` (
`target_imagename` varchar(30) NOT NULL default '',
`target_imageid` int(8) unsigned NOT NULL default '0',
PRIMARY KEY (`imageid`,`target_imageid`),
UNIQUE KEY `pid` (`pid`,`imagename`),
KEY `uuid` (`uuid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......
......@@ -8,6 +8,7 @@ sub DoUpdate($$$)
#
# No one is using this table yet.
#
DBQueryFatal("ALTER TABLE image_aliases DROP KEY `pid`");
DBQueryFatal("ALTER TABLE image_aliases DROP PRIMARY KEY");
DBQueryFatal("ALTER TABLE image_aliases ADD PRIMARY KEY ".
"(`imageid`,`target_imageid`)");
......
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