2020-08-11 09:38:20 +02:00
|
|
|
-- Miglioramento della cache interna
|
|
|
|
CREATE TABLE IF NOT EXISTS `zz_tasks` (
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`name` VARCHAR(255) NOT NULL,
|
|
|
|
`class` TEXT NOT NULL,
|
|
|
|
`expression` VARCHAR(255) NOT NULL,
|
2020-08-18 10:08:35 +02:00
|
|
|
`next_execution_at` timestamp NULL,
|
2020-08-11 09:38:20 +02:00
|
|
|
`last_executed_at` timestamp NULL,
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) ENGINE=InnoDB;
|
|
|
|
|
|
|
|
INSERT INTO `zz_cache` (`id`, `name`, `content`, `valid_time`, `expire_at`) VALUES
|
2020-08-12 16:03:25 +02:00
|
|
|
(NULL, 'Ultima esecuzione del cron', '', '1 month', NULL),
|
|
|
|
(NULL, 'Riavvia cron', '', '1 month', NULL),
|
|
|
|
(NULL, 'Disabilita cron', '', '1 month', NULL);
|
|
|
|
|
|
|
|
INSERT INTO `zz_tasks` (`id`, `name`, `class`, `expression`, `last_executed_at`) VALUES
|
|
|
|
(NULL, 'Backup automatico', 'Modules\\Backups\\BackupTask', '0 0 * * *', NULL);
|
|
|
|
|
|
|
|
DELETE FROM `zz_hooks` WHERE `class` = 'Modules\\Backups\\BackupHook';
|
2020-08-17 08:17:21 +02:00
|
|
|
|
|
|
|
-- Modifica dei Listini in Piani di sconto/rincaro
|
|
|
|
UPDATE `zz_modules` SET `title` = 'Piani di sconto/rincaro' WHERE `name` = 'Listini';
|