From be2485039e3e2b40857589c222d5320e33619e4f Mon Sep 17 00:00:00 2001 From: milindsingh1 Date: Mon, 10 Feb 2020 12:30:49 +0530 Subject: [PATCH 1/2] note added for foreign keys --- .../v2.3/extension-dev-guide/declarative-schema/db-schema.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/guides/v2.3/extension-dev-guide/declarative-schema/db-schema.md b/src/guides/v2.3/extension-dev-guide/declarative-schema/db-schema.md index 02877ef9299..86ee39cb0c7 100644 --- a/src/guides/v2.3/extension-dev-guide/declarative-schema/db-schema.md +++ b/src/guides/v2.3/extension-dev-guide/declarative-schema/db-schema.md @@ -416,6 +416,9 @@ In the following example, the selected `constraint` node defines the characteris ``` + {:.bs-callout-info} +Foreign keys can only be added to tables where both the tables are created by using declarative schema (`db_schema.xml`) only. + ### Drop a foreign key The following example removes the `FL_ALLOWED_SEVERITIES` foreign key by deleting its `constraint` node. To drop a constraint declared in another module, redeclare it with the `disabled` attribute set to `true`. From 26c7e825803239ab272be06a82ee177f420a89b0 Mon Sep 17 00:00:00 2001 From: Donald Booth Date: Mon, 10 Feb 2020 09:44:27 -0600 Subject: [PATCH 2/2] Grammar update --- .../v2.3/extension-dev-guide/declarative-schema/db-schema.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/guides/v2.3/extension-dev-guide/declarative-schema/db-schema.md b/src/guides/v2.3/extension-dev-guide/declarative-schema/db-schema.md index 86ee39cb0c7..304c064b2f0 100644 --- a/src/guides/v2.3/extension-dev-guide/declarative-schema/db-schema.md +++ b/src/guides/v2.3/extension-dev-guide/declarative-schema/db-schema.md @@ -416,8 +416,8 @@ In the following example, the selected `constraint` node defines the characteris ``` - {:.bs-callout-info} -Foreign keys can only be added to tables where both the tables are created by using declarative schema (`db_schema.xml`) only. +{:.bs-callout-info} +Foreign keys can only be added to tables when both tables were created using a declarative schema (`db_schema.xml`). ### Drop a foreign key