From a41da913c0803974e10279240e23c2e03696f799 Mon Sep 17 00:00:00 2001 From: Edvard Fonsell Date: Wed, 4 Mar 2020 13:25:46 +0200 Subject: [PATCH] fix drop foreign key constraint statements for mysql and db2 [ci skip] --- .../resources/scripts/db/update-6.2.0-x/db2.update.ddl.sql | 4 ++-- .../scripts/db/update-6.2.0-x/mysql.legacy.update.ddl.sql | 4 ++-- .../resources/scripts/db/update-6.2.0-x/mysql.update.ddl.sql | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nflow-engine/src/main/resources/scripts/db/update-6.2.0-x/db2.update.ddl.sql b/nflow-engine/src/main/resources/scripts/db/update-6.2.0-x/db2.update.ddl.sql index 746fd53fc..0c714207e 100644 --- a/nflow-engine/src/main/resources/scripts/db/update-6.2.0-x/db2.update.ddl.sql +++ b/nflow-engine/src/main/resources/scripts/db/update-6.2.0-x/db2.update.ddl.sql @@ -1,8 +1,8 @@ -- These must be run before nFlow is updated. -alter table nflow_workflow drop constraint fk_workflow_parent; +alter table nflow_workflow drop foreign key fk_workflow_parent; -alter table nflow_workflow drop constraint fk_workflow_root; +alter table nflow_workflow drop foreign key fk_workflow_root; create index idx_workflow_parent on nflow_workflow(parent_workflow_id); diff --git a/nflow-engine/src/main/resources/scripts/db/update-6.2.0-x/mysql.legacy.update.ddl.sql b/nflow-engine/src/main/resources/scripts/db/update-6.2.0-x/mysql.legacy.update.ddl.sql index 746fd53fc..0c714207e 100644 --- a/nflow-engine/src/main/resources/scripts/db/update-6.2.0-x/mysql.legacy.update.ddl.sql +++ b/nflow-engine/src/main/resources/scripts/db/update-6.2.0-x/mysql.legacy.update.ddl.sql @@ -1,8 +1,8 @@ -- These must be run before nFlow is updated. -alter table nflow_workflow drop constraint fk_workflow_parent; +alter table nflow_workflow drop foreign key fk_workflow_parent; -alter table nflow_workflow drop constraint fk_workflow_root; +alter table nflow_workflow drop foreign key fk_workflow_root; create index idx_workflow_parent on nflow_workflow(parent_workflow_id); diff --git a/nflow-engine/src/main/resources/scripts/db/update-6.2.0-x/mysql.update.ddl.sql b/nflow-engine/src/main/resources/scripts/db/update-6.2.0-x/mysql.update.ddl.sql index 746fd53fc..0c714207e 100644 --- a/nflow-engine/src/main/resources/scripts/db/update-6.2.0-x/mysql.update.ddl.sql +++ b/nflow-engine/src/main/resources/scripts/db/update-6.2.0-x/mysql.update.ddl.sql @@ -1,8 +1,8 @@ -- These must be run before nFlow is updated. -alter table nflow_workflow drop constraint fk_workflow_parent; +alter table nflow_workflow drop foreign key fk_workflow_parent; -alter table nflow_workflow drop constraint fk_workflow_root; +alter table nflow_workflow drop foreign key fk_workflow_root; create index idx_workflow_parent on nflow_workflow(parent_workflow_id);