diff --git a/update/2_4_47.sql b/update/2_4_47.sql index 9137a62e9..baf23b85f 100644 --- a/update/2_4_47.sql +++ b/update/2_4_47.sql @@ -15,4 +15,8 @@ UPDATE `zz_settings` SET `help` = "Valore espresso in Giga superato il quale vie -- Rimozione google maps DELETE FROM `zz_settings` WHERE `zz_settings`.`nome` = 'Google Maps API key'; -INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`, `help`) VALUES (NULL, 'Tile server OpenStreetMap', 'https://{s}.tile.openstreetmap.de/{z}/{x}/{y}.png', 'string', '1', 'Generali', NULL, NULL); \ No newline at end of file +INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`, `help`) VALUES (NULL, 'Tile server OpenStreetMap', 'https://{s}.tile.openstreetmap.de/{z}/{x}/{y}.png', 'string', '1', 'Generali', NULL, NULL); + +-- Nuova colonna Giorni scadenza in Scadenzario +INSERT INTO `zz_views` (`id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `html_format`, `search_inside`, `order_by`, `visible`, `summable`, `default`) VALUES +((SELECT `id` FROM `zz_modules` WHERE name='Scadenzario'), 'Scadenza giorni', 'DATEDIFF(co_scadenziario.scadenza,NOW())', 19, 1, 0, 0, 0, '', '', 1, 0, 0); \ No newline at end of file