diff --git a/update/2_5_1.sql b/update/2_5_1.sql index 483090012..451d91c60 100644 --- a/update/2_5_1.sql +++ b/update/2_5_1.sql @@ -422,12 +422,13 @@ INSERT INTO `zz_views_lang` (`id_lang`, `id_record`, `title`) VALUES -- Aggiunta tabella my_impianti_marche CREATE TABLE IF NOT EXISTS `my_impianti_marche` ( `id` INT NOT NULL AUTO_INCREMENT , - `name` TEXT NOT NULL, + `nota` TEXT DEFAULT NULL, + `parent` int DEFAULT NULL, PRIMARY KEY (`id`) ); -ALTER TABLE `my_impianti` ADD `id_marca` INT NULL AFTER `idanagrafica`; -ALTER TABLE `my_impianti` ADD `modello` TEXT NULL AFTER `id_marca`; +ALTER TABLE `my_impianti` ADD `id_marca` INT NULL AFTER `idanagrafica`; +ALTER TABLE `my_impianti` ADD `id_modello` INT NULL AFTER `id_marca`; -- Modulo Marche impianto INSERT INTO `zz_modules` (`name`, `directory`, `options`, `options2`, `icon`, `version`, `compatibility`, `order`, `parent`, `default`, `enabled`, `use_notes`, `use_checklists`) VALUES ('Marche impianti', 'impianti_marche', 'SELECT |select| FROM `my_impianti_marche` WHERE 1=1 HAVING 2=2', '', 'fa fa-angle-right', '2.5.1', '2.5.1', '2', '30', '1', '1', '0', '0'); diff --git a/update/tables.php b/update/tables.php index 7bf4c5bd0..8818ad38f 100755 --- a/update/tables.php +++ b/update/tables.php @@ -140,6 +140,7 @@ return [ 'my_impianti_categorie_lang', 'my_impianti_contratti', 'my_impianti_interventi', + 'my_impianti_marche', 'mg_articolo_attributo', 'mg_attributi', 'mg_attributi_lang',