Update 2_4_14.sql

Fix per vincolo d'integrita' referenziale non soddisfatto
This commit is contained in:
Luca 2020-02-18 00:17:15 +01:00
parent 168d35a869
commit 4bd34053d4
1 changed files with 2 additions and 0 deletions

View File

@ -150,8 +150,10 @@ UPDATE `co_promemoria_righe` SET `qta` = IF(`qta` = 0, 1, `qta`),
ALTER TABLE `co_promemoria_righe` RENAME TO `co_righe_promemoria`;
SET FOREIGN_KEY_CHECKS=0;
DROP TABLE `mg_articoli_interventi`;
DROP TABLE `co_promemoria_articoli`;
SET FOREIGN_KEY_CHECKS=1;
ALTER TABLE `co_righe_promemoria` ADD `original_id` int(11), ADD `original_type` varchar(255);
ALTER TABLE `in_righe_interventi` ADD `original_id` int(11), ADD `original_type` varchar(255);