Commit 2ff30d73 authored by Dave Reid's avatar Dave Reid

#899420 by CrashTest_: Fixed error in xmlsitemap_update_6204() with...

#899420 by CrashTest_: Fixed error in xmlsitemap_update_6204() with unnecessary db_drop_primary_key().
parent 66abf6df
......@@ -483,8 +483,9 @@ function xmlsitemap_update_6204() {
);
db_change_field('xmlsitemap_sitemap', 'context_hash', 'smid', $smid_field);
// Remove and re-add the primary key now that the smid field is changed.
db_drop_primary_key('xmlsitemap_sitemap');
// Re-add the primary key now that the smid field is changed.
// We don't need to drop the primary key since we already dropped the field
// that was the primary key.
db_add_primary_key('xmlsitemap_sitemap', array('smid'));
}
......
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