diff --git a/update/2_4_52.sql b/update/2_4_52.sql index ee9857833..7dcf00951 100644 --- a/update/2_4_52.sql +++ b/update/2_4_52.sql @@ -65,10 +65,8 @@ CREATE TABLE `an_sedi_tecnici` ( `idsede` INT NOT NULL , `idtecnico` INT NOT NULL , `data_inizio` DATE NULL DEFAULT NULL, - `data_fine` DATE NULL DEFAULT NULL, - `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , - `updated_at` TIMESTAMP on UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , -PRIMARY KEY (`id`)) ENGINE = InnoDB; + `data_fine` DATE NULL DEFAULT NULL +PRIMARY KEY (`id`)); -- Aggiunta indici ALTER TABLE `an_sedi_tecnici` diff --git a/update/2_4_55.sql b/update/2_4_55.sql index a02a0db6d..78d7e95da 100644 --- a/update/2_4_55.sql +++ b/update/2_4_55.sql @@ -578,4 +578,8 @@ WHERE HAVING 2=2 ORDER BY - `id`, `nome` ASC" WHERE `name` = 'Utenti e permessi'; \ No newline at end of file + `id`, `nome` ASC" WHERE `name` = 'Utenti e permessi'; + +-- Fix per errore creazione tabella an_sedi_tecnici v. 2.4.52 +ALTER TABLE `an_sedi_tecnici` CHANGE `updated_at` `updated_at` TIMESTAMP NULL on update CURRENT_TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP; +ALTER TABLE `an_sedi_tecnici` CHANGE `created_at` `created_at` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP; \ No newline at end of file