From 98bf06c5fced83e3821380b3dbcfc0e19cd99bca Mon Sep 17 00:00:00 2001 From: Lamrani Abdel Date: Mon, 11 Dec 2023 17:55:20 +0100 Subject: [PATCH 1/5] New column in website table for stock name of template imported --- htdocs/install/mysql/migration/18.0.0-19.0.0.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/install/mysql/migration/18.0.0-19.0.0.sql b/htdocs/install/mysql/migration/18.0.0-19.0.0.sql index 2461ed733cb..e9b846bbf4a 100644 --- a/htdocs/install/mysql/migration/18.0.0-19.0.0.sql +++ b/htdocs/install/mysql/migration/18.0.0-19.0.0.sql @@ -201,3 +201,5 @@ ALTER TABLE llx_commande_fournisseur_dispatch ADD COLUMN element_type varchar(50 ALTER TABLE llx_expensereport DROP INDEX idx_expensereport_fk_refuse, ADD INDEX idx_expensereport_fk_refuse(fk_user_refuse); INSERT INTO llx_c_forme_juridique (fk_pays, code, libelle) VALUES (1,'66','Société publique locale'); + +ALTER TABLE llx_website ADD COLUMN name_template varchar(255) NULL; \ No newline at end of file From b61d6f43dc60f3573c458fc482d88a70dc3b9097 Mon Sep 17 00:00:00 2001 From: Lamrani Abdel Date: Mon, 18 Dec 2023 18:41:38 +0100 Subject: [PATCH 2/5] add column in table --- htdocs/install/mysql/tables/llx_website-website.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/install/mysql/tables/llx_website-website.sql b/htdocs/install/mysql/tables/llx_website-website.sql index 8ac580919aa..8b027e39a8c 100644 --- a/htdocs/install/mysql/tables/llx_website-website.sql +++ b/htdocs/install/mysql/tables/llx_website-website.sql @@ -41,5 +41,6 @@ CREATE TABLE llx_website pageviews_month BIGINT UNSIGNED DEFAULT 0, -- increased by 1 at each page access, saved into pageviews_previous_month when on different month than lastaccess pageviews_total BIGINT UNSIGNED DEFAULT 0, -- increased by 1 at each page access, no reset tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - import_key varchar(14) -- import key + import_key varchar(14), -- import key + name_template varchar(255) NULL ) ENGINE=innodb; From e4356ef635eda6fa0c865b259f74475effabf86e Mon Sep 17 00:00:00 2001 From: Lamrani Abdel Date: Tue, 19 Dec 2023 15:53:17 +0100 Subject: [PATCH 3/5] add column in table website --- htdocs/install/mysql/tables/llx_website-website.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/install/mysql/tables/llx_website-website.sql b/htdocs/install/mysql/tables/llx_website-website.sql index 8b027e39a8c..7380fe678df 100644 --- a/htdocs/install/mysql/tables/llx_website-website.sql +++ b/htdocs/install/mysql/tables/llx_website-website.sql @@ -42,5 +42,5 @@ CREATE TABLE llx_website pageviews_total BIGINT UNSIGNED DEFAULT 0, -- increased by 1 at each page access, no reset tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, import_key varchar(14), -- import key - name_template varchar(255) NULL + name_template varchar(255) NULL --name of template imported ) ENGINE=innodb; From 133b2a43ce22e9147169a2a35269e548163c5bcc Mon Sep 17 00:00:00 2001 From: Lamrani Abdel Date: Sat, 6 Jan 2024 19:24:46 +0100 Subject: [PATCH 4/5] add in migration file --- htdocs/install/mysql/migration/19.0.0-20.0.0.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/install/mysql/migration/19.0.0-20.0.0.sql b/htdocs/install/mysql/migration/19.0.0-20.0.0.sql index b5ce150595a..975b4abf416 100644 --- a/htdocs/install/mysql/migration/19.0.0-20.0.0.sql +++ b/htdocs/install/mysql/migration/19.0.0-20.0.0.sql @@ -158,3 +158,4 @@ ALTER TABLE llx_user_extrafields DROP INDEX idx_user_extrafields; ALTER TABLE llx_user_extrafields ADD UNIQUE INDEX uk_user_extrafields (fk_object); ALTER TABLE llx_usergroup_extrafields DROP INDEX idx_usergroup_extrafields; ALTER TABLE llx_usergroup_extrafields ADD UNIQUE INDEX uk_usergroup_extrafields (fk_object); +ALTER TABLE llx_website ADD COLUMN name_template varchar(255) NULL; From 859ab08d35fe960fb680c9fd2b8737bcb406e6d7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 18 Jan 2024 14:16:28 +0100 Subject: [PATCH 5/5] Update 18.0.0-19.0.0.sql --- htdocs/install/mysql/migration/18.0.0-19.0.0.sql | 3 --- 1 file changed, 3 deletions(-) diff --git a/htdocs/install/mysql/migration/18.0.0-19.0.0.sql b/htdocs/install/mysql/migration/18.0.0-19.0.0.sql index ae837514ba0..c329502cf86 100644 --- a/htdocs/install/mysql/migration/18.0.0-19.0.0.sql +++ b/htdocs/install/mysql/migration/18.0.0-19.0.0.sql @@ -202,9 +202,6 @@ ALTER TABLE llx_expensereport DROP INDEX idx_expensereport_fk_refuse, ADD INDEX INSERT INTO llx_c_forme_juridique (fk_pays, code, libelle) VALUES (1,'66','Société publique locale'); - -ALTER TABLE llx_website ADD COLUMN name_template varchar(255) NULL; - ALTER TABLE llx_prelevement_lignes ADD COLUMN tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP; ALTER TABLE llx_bom_bomline ADD COLUMN tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;