* @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ function ps1600_add_missing_index() { $key_exists = Db::getInstance()->executeS(' SHOW INDEX FROM `'._DB_PREFIX_.'connections` WHERE Key_name = "id_guest"'); if (!$key_exists) Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'connections` ADD INDEX (`id_guest`)'); return true; }