Skip to content

Commit

Permalink
Move create index in CREATE TABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Mar 24, 2022
1 parent 97443e4 commit 27a4d4b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sql/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@
`date_add` datetime NOT NULL,
`date_upd` datetime NOT NULL,
PRIMARY KEY (`id_gdpr_log`),
INDEX (`id_customer`)
INDEX (`id_customer`),
INDEX `idx_id_customer` ( `id_customer`, `id_guest`, `client_name`, `id_module`, `date_add`, `date_upd`)
) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=UTF8;';

$sql[] = ' ALTER TABLE `' . _DB_PREFIX_ . 'psgdpr_log`
ADD INDEX `idx_id_customer` ( `id_customer`, `id_guest`, `client_name`, `id_module`, `date_add`, `date_upd`); ';

foreach ($sql as $query) {
if (Db::getInstance()->execute($query) == false) {
return false;
Expand Down

0 comments on commit 27a4d4b

Please sign in to comment.