Skip to content

Commit 505918e

Browse files
committed
feat: #1634 Aggiunte colonne Note e _bg_ in Categorie impianti
1 parent 59b4a98 commit 505918e

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

update/2_8.sql

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`
55
INSERT INTO `zz_settings_lang` (`id_lang`, `id_record`, `title`) VALUES (1, (SELECT id FROM zz_settings WHERE `nome`='Endpoint ibanapi.com'), 'Endpoint ibanapi.com');
66
INSERT INTO `zz_settings_lang` (`id_lang`, `id_record`, `title`) VALUES (1, (SELECT id FROM zz_settings WHERE `nome`='Api key ibanapi.com'), 'Api key ibanapi.com');
77

8-
9-
108
-- Aggiunta impostazione per OpenRouter API Key
119
INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`) VALUES
1210
(NULL, 'OpenRouter API Key', '', 'string', 1, 'API', NULL);
@@ -52,7 +50,6 @@ INSERT INTO `zz_settings_lang` (`id_lang`, `id_record`, `title`, `help`) VALUES
5250
'System Prompt for AI Model',
5351
'The system message sent to the AI to define its role and behavior. Modify it to customize responses.');
5452

55-
5653
-- Nuovo modulo "Descrizioni predefinite"
5754
INSERT INTO `zz_modules` (`name`, `directory`, `options`, `options2`, `icon`, `version`, `compatibility`, `order`, `parent`, `default`, `enabled`, `use_notes`, `use_checklists`) VALUES ('Descrizioni predefinite', 'descrizioni_predefinite', 'SELECT |select| FROM `zz_default_description` WHERE 1=1 HAVING 2=2', '', 'fa fa-circle-o', '2.8', '2.8', '8', (SELECT `id` FROM `zz_modules` AS `t` WHERE `name` = 'Tabelle'), '1', '1', '1', '1');
5855

@@ -77,4 +74,17 @@ INSERT INTO `zz_views_lang` (`id_lang`, `id_record`, `title`) VALUES
7774
('2', (SELECT `id` FROM `zz_views` WHERE `name` = 'id' AND `id_module` = @id_module), 'id');
7875

7976
CREATE TABLE `zz_default_description` (`id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR(255) NOT NULL , `descrizione` TEXT NOT NULL , `note` TEXT NOT NULL , PRIMARY KEY (`id`));
80-
CREATE TABLE `zz_default_description_module` (`id` INT NOT NULL AUTO_INCREMENT , `id_description` INT NOT NULL , `id_module` INT NOT NULL , PRIMARY KEY (`id`));
77+
CREATE TABLE `zz_default_description_module` (`id` INT NOT NULL AUTO_INCREMENT , `id_description` INT NOT NULL , `id_module` INT NOT NULL , PRIMARY KEY (`id`));
78+
79+
-- Aggiunte colonne Note e _bg_ in Categorie impianti
80+
SELECT @id_module := `id` FROM `zz_modules` WHERE `name` = 'Categorie impianti';
81+
INSERT INTO `zz_views` (`id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `html_format`, `search_inside`, `order_by`, `visible`, `summable`, `avg`, `default`) VALUES
82+
(@id_module, 'Note', '`nota`', 3, 1, 0, 0, 0, '', '', 1, 0, 0, 0),
83+
(@id_module, '_bg_', '`colore`', 4, 1, 0, 0, 0, '', '', 0, 0, 0, 0);
84+
85+
SELECT @id:= MAX(`id`) FROM `zz_views`;
86+
INSERT INTO `zz_views_lang` (`id_lang`, `id_record`, `title`) VALUES
87+
(1, @id-1, 'Note'),
88+
(2, @id-1, 'Note'),
89+
(1, @id, '_bg_'),
90+
(2, @id, '_bg_');

0 commit comments

Comments
 (0)