Skip to content

Commit 14210dd

Browse files
committed
fix: query di installazione
1 parent 502612f commit 14210dd

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

update/2_9_1.sql

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,60 +10,60 @@ INSERT INTO `zz_views_lang` (`id_lang`, `id_record`, `title`) VALUES
1010

1111
-- Nuova gestione Hooks con Task
1212
-- Invio emails
13-
INSERT INTO `zz_tasks` (`id`, `name`, `class`, `expression`, `next_execution_at`, `last_executed_at`) VALUES
14-
(NULL, 'Hook Email', 'Modules\\Emails\\EmailHookTask', '*/5 * * * *', NULL, NULL);
13+
INSERT INTO `zz_tasks` (`name`, `class`, `expression`, `enabled`) VALUES
14+
('Hook Email', 'Modules\\Emails\\EmailHookTask', '*/5 * * * *', 1);
1515

1616
SELECT @idtask := MAX(id) FROM zz_tasks;
17-
INSERT INTO `zz_tasks_lang` (`id`, `id_lang`, `id_record`, `title`) VALUES
18-
(NULL, '1', @idtask, 'Hook Email'),
19-
(NULL, '2', @idtask, 'Email Hook');
17+
INSERT INTO `zz_tasks_lang` (`id_lang`, `id_record`, `title`) VALUES
18+
('1', @idtask, 'Hook Email'),
19+
('2', @idtask, 'Email Hook');
2020

2121
-- Verifica aggiornamenti
22-
INSERT INTO `zz_tasks` (`id`, `name`, `class`, `expression`, `next_execution_at`, `last_executed_at`) VALUES
23-
(NULL, 'Hook Aggiornamenti', 'Modules\\Aggiornamenti\\UpdateHookTask', '0 */24 * * *', NULL, NULL);
22+
INSERT INTO `zz_tasks` (`name`, `class`, `expression`, `enabled`) VALUES
23+
('Hook Aggiornamenti', 'Modules\\Aggiornamenti\\UpdateHookTask', '0 */24 * * *', 1);
2424

2525
SELECT @idtask := MAX(id) FROM zz_tasks;
26-
INSERT INTO `zz_tasks_lang` (`id`, `id_lang`, `id_record`, `title`) VALUES
27-
(NULL, '1', @idtask, 'Hook Aggiornamenti'),
28-
(NULL, '2', @idtask, 'Updates Hook');
26+
INSERT INTO `zz_tasks_lang` (`id_lang`, `id_record`, `title`) VALUES
27+
('1', @idtask, 'Hook Aggiornamenti'),
28+
('2', @idtask, 'Updates Hook');
2929

3030
-- Calcolo spazio disponibile
31-
INSERT INTO `zz_tasks` (`id`, `name`, `class`, `expression`, `next_execution_at`, `last_executed_at`) VALUES
32-
(NULL, 'Hook Spazio disponibile', 'Modules\\StatoServizi\\SpaceHookTask', '0 */24 * * *', NULL, NULL);
31+
INSERT INTO `zz_tasks` (`name`, `class`, `expression`, `enabled`) VALUES
32+
('Hook Spazio disponibile', 'Modules\\StatoServizi\\SpaceHookTask', '0 */24 * * *', 1);
3333

3434
SELECT @idtask := MAX(id) FROM zz_tasks;
35-
INSERT INTO `zz_tasks_lang` (`id`, `id_lang`, `id_record`, `title`) VALUES
36-
(NULL, '1', @idtask, 'Hook Spazio disponibile'),
37-
(NULL, '2', @idtask, 'Space Hook');
35+
INSERT INTO `zz_tasks_lang` (`id_lang`, `id_record`, `title`) VALUES
36+
('1', @idtask, 'Hook Spazio disponibile'),
37+
('2', @idtask, 'Space Hook');
3838

3939
-- Informazioni su services
40-
INSERT INTO `zz_tasks` (`id`, `name`, `class`, `expression`, `next_execution_at`, `last_executed_at`) VALUES
41-
(NULL, 'Hook Informazioni su Services', 'Modules\\StatoServizi\\ServicesHookTask', '0 */24 * * *', NULL, NULL);
40+
INSERT INTO `zz_tasks` (`name`, `class`, `expression`, `enabled`) VALUES
41+
('Hook Informazioni su Services', 'Modules\\StatoServizi\\ServicesHookTask', '0 */24 * * *', 1);
4242

4343
SELECT @idtask := MAX(id) FROM zz_tasks;
44-
INSERT INTO `zz_tasks_lang` (`id`, `id_lang`, `id_record`, `title`) VALUES
45-
(NULL, '1', @idtask, 'Hook Informazioni su Services'),
46-
(NULL, '2', @idtask, 'Services Hook');
44+
INSERT INTO `zz_tasks_lang` (`id_lang`, `id_record`, `title`) VALUES
45+
('1', @idtask, 'Hook Informazioni su Services'),
46+
('2', @idtask, 'Services Hook');
4747

4848
-- Invio fatture elettroniche
49-
INSERT INTO `zz_tasks` (`id`, `name`, `class`, `expression`, `next_execution_at`, `last_executed_at`) VALUES
50-
(NULL, 'Hook Invio Fatture Elettroniche', 'Plugins\\ExportFE\\InvoiceHookTask', '*/30 * * * *', NULL, NULL);
49+
INSERT INTO `zz_tasks` (`name`, `class`, `expression`, `enabled`) VALUES
50+
('Hook Invio Fatture Elettroniche', 'Plugins\\ExportFE\\InvoiceHookTask', '*/30 * * * *', 1);
5151

5252
SELECT @idtask := MAX(id) FROM zz_tasks;
53-
INSERT INTO `zz_tasks_lang` (`id`, `id_lang`, `id_record`, `title`) VALUES
54-
(NULL, '1', @idtask, 'Hook Invio Fatture Elettroniche'),
55-
(NULL, '2', @idtask, 'Electronic Invoices Hook');
53+
INSERT INTO `zz_tasks_lang` (`id_lang`, `id_record`, `title`) VALUES
54+
('1', @idtask, 'Hook Invio Fatture Elettroniche'),
55+
('2', @idtask, 'Electronic Invoices Hook');
5656

5757
-- Importazione automatica ricevute FE
5858
UPDATE `zz_tasks` SET `expression` = '0 */4 * * *' WHERE `name` = 'Importazione automatica Ricevute FE';
5959

60-
INSERT INTO `zz_tasks` (`id`, `name`, `class`, `expression`, `next_execution_at`, `last_executed_at`) VALUES
61-
(NULL, 'Hook Importazione Fatture Elettroniche', 'Plugins\\ImportFE\\InvoiceHookTask', '0 */24 * * *', NULL, NULL);
60+
INSERT INTO `zz_tasks` (`name`, `class`, `expression`, `enabled`) VALUES
61+
('Hook Importazione Fatture Elettroniche', 'Plugins\\ImportFE\\InvoiceHookTask', '0 */24 * * *', 1);
6262

6363
SELECT @idtask := MAX(id) FROM zz_tasks;
64-
INSERT INTO `zz_tasks_lang` (`id`, `id_lang`, `id_record`, `title`) VALUES
65-
(NULL, '1', @idtask, 'Hook Importazione Fatture Elettroniche'),
66-
(NULL, '2', @idtask, 'Electronic Invoices Import Hook');
64+
INSERT INTO `zz_tasks_lang` (`id_lang`, `id_record`, `title`) VALUES
65+
('1', @idtask, 'Hook Importazione Fatture Elettroniche'),
66+
('2', @idtask, 'Electronic Invoices Import Hook');
6767

6868
UPDATE `zz_modules` m1 JOIN `zz_modules` m2 ON m2.name = 'Tabelle' SET m1.parent = m2.id WHERE m1.name = 'Categorie contratti';
6969

0 commit comments

Comments
 (0)