From d51b2f9164c19a04e29a6421d4f89d04f2d53138 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 21 May 2022 17:25:38 +0200 Subject: [PATCH] Fix migration --- htdocs/install/mysql/migration/15.0.0-16.0.0.sql | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/htdocs/install/mysql/migration/15.0.0-16.0.0.sql b/htdocs/install/mysql/migration/15.0.0-16.0.0.sql index 07a9856a1f9..02c654dd518 100644 --- a/htdocs/install/mysql/migration/15.0.0-16.0.0.sql +++ b/htdocs/install/mysql/migration/15.0.0-16.0.0.sql @@ -30,10 +30,20 @@ -- -- VPGSQL8.2 SELECT dol_util_rebuild_sequences(); -ALTER TABLE llx_holiday ADD COLUMN nb_open_day double(24,8) DEFAULT NULL; -- Missing in v15 or lower +-- VMYSQL4.3 ALTER TABLE llx_c_civility CHANGE COLUMN rowid rowid INTEGER NOT NULL AUTO_INCREMENT; + +ALTER TABLE llx_c_transport_mode ADD UNIQUE INDEX uk_c_transport_mode (code, entity); + +ALTER TABLE llx_c_shipment_mode MODIFY COLUMN tracking varchar(255) NULL; + +ALTER TABLE llx_holiday ADD COLUMN nb_open_day double(24,8) DEFAULT NULL; + +ALTER TABLE llx_element_tag ADD COLUMN fk_categorie INTEGER; + + insert into llx_c_type_resource (code, label, active) values ('RES_ROOMS', 'Rooms', 1); insert into llx_c_type_resource (code, label, active) values ('RES_CARS', 'Cars', 1);