From f9694498c4bb94d48083b0ecc09fdbe0917dbdb1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Sep 2023 21:23:11 +0200 Subject: [PATCH] Fix migration --- htdocs/install/mysql/migration/18.0.0-19.0.0.sql | 6 ++++++ .../install/mysql/tables/llx_bookcal_calendar-bookcal.sql | 4 ++-- 2 files changed, 8 insertions(+), 2 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 cdebd4fc7c4..eda447bb53e 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 @@ -92,3 +92,9 @@ ALTER TABLE llx_actioncomm ADD COLUMN fk_bookcal_availability integer DEFAULT NU ALTER TABLE llx_product_lot ADD COLUMN qc_frequency integer DEFAULT NULL; ALTER TABLE llx_product_lot ADD COLUMN lifetime integer DEFAULT NULL; + + +ALTER TABLE llx_bookcal_availabilities ADD COLUMN fk_bookcal_calendar integer NOT NULL; + +ALTER TABLE llx_bookcal_calendar ADD COLUMN visibility integer NOT NULL DEFAULT 1; + diff --git a/htdocs/install/mysql/tables/llx_bookcal_calendar-bookcal.sql b/htdocs/install/mysql/tables/llx_bookcal_calendar-bookcal.sql index daf01d69999..1326e988da6 100644 --- a/htdocs/install/mysql/tables/llx_bookcal_calendar-bookcal.sql +++ b/htdocs/install/mysql/tables/llx_bookcal_calendar-bookcal.sql @@ -29,8 +29,8 @@ CREATE TABLE llx_bookcal_calendar( fk_user_creat integer NOT NULL, fk_user_modif integer, import_key varchar(14), - status integer NOT NULL, + status integer NOT NULL DEFAULT 0, type integer NOT NULL, - visibility integer NOT NULL + visibility integer NOT NULL DEFAULT 1 -- END MODULEBUILDER FIELDS ) ENGINE=innodb;