From cfa593def1b6fa7c6e3b6483267cf13c2d6f442a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 21 Jan 2021 13:13:59 +0100 Subject: [PATCH] Fix must be foreign key name, not field name. --- htdocs/install/mysql/migration/13.0.0-14.0.0.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/install/mysql/migration/13.0.0-14.0.0.sql b/htdocs/install/mysql/migration/13.0.0-14.0.0.sql index 559721da393..fd65ab02827 100644 --- a/htdocs/install/mysql/migration/13.0.0-14.0.0.sql +++ b/htdocs/install/mysql/migration/13.0.0-14.0.0.sql @@ -57,8 +57,8 @@ ALTER TABLE llx_website ADD COLUMN pageviews_total BIGINT UNSIGNED DEFAULT 0; -- Drop foreign key with bad name or not required -ALTER TABLE llx_workstation_workstation DROP FOREIGN KEY fk_user_creat; -ALTER TABLE llx_propal DROP FOREIGN KEY fk_warehouse; +ALTER TABLE llx_workstation_workstation DROP FOREIGN KEY llx_workstation_workstation_fk_user_creat; +ALTER TABLE llx_propal DROP FOREIGN KEY llx_propal_fk_warehouse; CREATE TABLE llx_workstation_workstation(