diff --git a/xmlsitemap.install b/xmlsitemap.install index 1eef3af..5c688a6 100644 --- a/xmlsitemap.install +++ b/xmlsitemap.install @@ -577,9 +577,11 @@ function xmlsitemap_update_7204() { /** * Add new primary key including the language. */ -function xmlsitemap_update_7204() { - db_drop_primary_key('xmlsitemap'); - db_add_primary_key('xmlsitemap', array('id', 'type', 'language')); +function xmlsitemap_update_7205() { + $table = 'xmlsitemap'; + db_drop_primary_key($table); + db_drop_unique_key($table, 'language'); + db_add_primary_key($table, array('id', 'type', 'language')); } /**