Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Changes in database - Increase search speed #32

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mailalerts.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,16 @@ public function install($delete_params = true)

$sql = 'CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.MailAlert::$definition['table'].'`
(
`id_mailalert_customer_oos` int(10) unsigned NOT NULL AUTO_INCREMENT,
`id_customer` int(10) unsigned NOT NULL,
`customer_email` varchar(128) NOT NULL,
`id_product` int(10) unsigned NOT NULL,
`id_product_attribute` int(10) unsigned NOT NULL,
`id_shop` int(10) unsigned NOT NULL,
`id_lang` int(10) unsigned NOT NULL,
PRIMARY KEY (`id_customer`,`customer_email`,`id_product`,`id_product_attribute`,`id_shop`)
PRIMARY KEY (`id_mailalert_customer_oos`),
KEY `customer` (`id_customer`,`customer_email`),
KEY `ids` (`id_product`,`id_product_attribute`,`id_shop`)
) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci';

if (!Db::getInstance()->execute($sql))
Expand Down