From 353e65c0ce8327fe24adf6ab6f896b9ad147b085 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 10 Nov 2020 14:41:39 +0100 Subject: [PATCH] Fix 2.4.11 sql --- update/2_4_11.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update/2_4_11.sql b/update/2_4_11.sql index 22ce6a6a6..08b3c7bc5 100755 --- a/update/2_4_11.sql +++ b/update/2_4_11.sql @@ -424,12 +424,12 @@ INSERT INTO `zz_views` (`id_module`, `name`, `query`, `order`, `search`, `slow`, ALTER TABLE `em_templates` ADD `id_account` INT(11) NOT NULL; UPDATE `em_templates` SET `id_account` = `id_smtp`; -ALTER TABLE `em_templates` DROP CONSTRAINT `em_templates_ibfk_2`, DROP `id_smtp`; +ALTER TABLE `em_templates` DROP FOREIGN KEY `em_templates_ibfk_2`, DROP `id_smtp`; ALTER TABLE `em_templates` ADD FOREIGN KEY (`id_account`) REFERENCES `em_accounts`(`id`) ON DELETE CASCADE; ALTER TABLE `em_print_template` ADD `id_template` INT(11) NOT NULL; UPDATE `em_print_template` SET `id_template` = `id_email`; -ALTER TABLE `em_print_template` DROP CONSTRAINT `em_print_template_ibfk_1`, DROP `id_email`; +ALTER TABLE `em_print_template` DROP FOREIGN KEY `em_print_template_ibfk_1`, DROP `id_email`; ALTER TABLE `em_print_template` ADD FOREIGN KEY (`id_template`) REFERENCES `em_templates`(`id`) ON DELETE CASCADE; ALTER TABLE `em_accounts` ADD `timeout` INT(11) NOT NULL DEFAULT 1000;