Commit 595a06df authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix.

parent dd4c67d0
......@@ -8,7 +8,9 @@ sub DoUpdate($$$)
#
# No one is using this table yet.
#
if (DBKeyExists("image_aliases", "pid")) {
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