// Removed 1 useless key in the database
This commit is contained in:
@@ -31,7 +31,8 @@ function p15017_add_id_shop_to_primary_key()
|
|||||||
$old_indexes = array(
|
$old_indexes = array(
|
||||||
'category_lang_index' => 'category_lang',
|
'category_lang_index' => 'category_lang',
|
||||||
'shipper_lang_index' => 'carrier_lang',
|
'shipper_lang_index' => 'carrier_lang',
|
||||||
'product_lang_index' => 'product_lang'
|
'product_lang_index' => 'product_lang',
|
||||||
|
'id_category_shop' => 'category_shop'
|
||||||
);
|
);
|
||||||
foreach ($old_indexes as $index => $table)
|
foreach ($old_indexes as $index => $table)
|
||||||
if (Db::getInstance()->executeS('SHOW INDEX FROM `'._DB_PREFIX_.$table.'` WHERE Key_name = "'.$index.'"'))
|
if (Db::getInstance()->executeS('SHOW INDEX FROM `'._DB_PREFIX_.$table.'` WHERE Key_name = "'.$index.'"'))
|
||||||
|
|||||||
Reference in New Issue
Block a user