From 20cf35ec901f11a4624b760a3488b0b65b31b80b Mon Sep 17 00:00:00 2001 From: PululuK Date: Wed, 14 Oct 2020 10:58:53 +0200 Subject: [PATCH] Improve logs table perfomances --- sql/install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/install.php b/sql/install.php index d93653f1..7fe28077 100755 --- a/sql/install.php +++ b/sql/install.php @@ -47,7 +47,8 @@ `request_type` int(10) NOT NULL, `date_add` datetime NOT NULL, `date_upd` datetime NOT NULL, - PRIMARY KEY (`id_gdpr_log`) + PRIMARY KEY (`id_gdpr_log`), + INDEX (`id_customer`) ) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=UTF8;'; foreach ($sql as $query) {