From 0243fe9d51a64cca3a3bc51bbd5fdc40927cfa07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 30 Mar 2023 10:21:27 +0200 Subject: [PATCH 1/4] optimize supplier price log --- htdocs/install/mysql/migration/17.0.0-18.0.0.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/install/mysql/migration/17.0.0-18.0.0.sql b/htdocs/install/mysql/migration/17.0.0-18.0.0.sql index a63c5313bae..9fcc01e1525 100644 --- a/htdocs/install/mysql/migration/17.0.0-18.0.0.sql +++ b/htdocs/install/mysql/migration/17.0.0-18.0.0.sql @@ -380,3 +380,6 @@ ALTER TABLE llx_product_lot ADD COLUMN last_main_doc varchar(255) AFTER model_pd ALTER TABLE llx_product_fournisseur_price ADD COLUMN status integer DEFAULT 1; +ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_product_fournisseur (fk_product_fournisseur); +ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_user (fk_user); +ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_multicurrency (fk_multicurrency); From 6d211b9a1ad6dbe9e3917b7f18528f3c2c5c9c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 30 Mar 2023 10:21:42 +0200 Subject: [PATCH 2/4] optimize supplier price log --- .../llx_product_fournisseur_price_log.key.sql | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 htdocs/install/mysql/tables/llx_product_fournisseur_price_log.key.sql diff --git a/htdocs/install/mysql/tables/llx_product_fournisseur_price_log.key.sql b/htdocs/install/mysql/tables/llx_product_fournisseur_price_log.key.sql new file mode 100644 index 00000000000..711d2a815cd --- /dev/null +++ b/htdocs/install/mysql/tables/llx_product_fournisseur_price_log.key.sql @@ -0,0 +1,21 @@ +-- ============================================================================ +-- Copyright (C) 2023 Frédéric France +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 3 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see . +-- +-- ============================================================================ + +ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_product_fournisseur (fk_product_fournisseur); +ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_user (fk_user); +ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_multicurrency (fk_multicurrency); From e957e8faaf15303c8ae27869b22f4d58e9b34c2f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 31 Mar 2023 01:24:13 +0200 Subject: [PATCH 3/4] Update 17.0.0-18.0.0.sql --- htdocs/install/mysql/migration/17.0.0-18.0.0.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/install/mysql/migration/17.0.0-18.0.0.sql b/htdocs/install/mysql/migration/17.0.0-18.0.0.sql index 9fcc01e1525..fb8cb956a6d 100644 --- a/htdocs/install/mysql/migration/17.0.0-18.0.0.sql +++ b/htdocs/install/mysql/migration/17.0.0-18.0.0.sql @@ -382,4 +382,4 @@ ALTER TABLE llx_product_fournisseur_price ADD COLUMN status integer DEFAULT 1; ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_product_fournisseur (fk_product_fournisseur); ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_user (fk_user); -ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_multicurrency (fk_multicurrency); +--ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_multicurrency (fk_multicurrency); From 43f0cf8513c114fc80a8a328e07c3de8f9b36a55 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 31 Mar 2023 01:24:25 +0200 Subject: [PATCH 4/4] Update llx_product_fournisseur_price_log.key.sql --- .../mysql/tables/llx_product_fournisseur_price_log.key.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/install/mysql/tables/llx_product_fournisseur_price_log.key.sql b/htdocs/install/mysql/tables/llx_product_fournisseur_price_log.key.sql index 711d2a815cd..63949eeaf53 100644 --- a/htdocs/install/mysql/tables/llx_product_fournisseur_price_log.key.sql +++ b/htdocs/install/mysql/tables/llx_product_fournisseur_price_log.key.sql @@ -18,4 +18,4 @@ ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_product_fournisseur (fk_product_fournisseur); ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_user (fk_user); -ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_multicurrency (fk_multicurrency); +--ALTER TABLE llx_product_fournisseur_price_log ADD INDEX idx_product_fournisseur_price_log_fk_multicurrency (fk_multicurrency);