From edf66d32a5541aa543a114d5d5690c07a932b6f4 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 12 Jan 2022 15:08:08 +0000 Subject: [PATCH 1/2] apply further suggestions from #1348 --- ...tions-additions-and-compatibility.asciidoc | 72 +++++++++---------- 1 file changed, 35 insertions(+), 37 deletions(-) diff --git a/cypher/cypher-docs/src/docs/dev/deprecations-additions-and-compatibility.asciidoc b/cypher/cypher-docs/src/docs/dev/deprecations-additions-and-compatibility.asciidoc index 53b53a19c3b..14a1df841d8 100644 --- a/cypher/cypher-docs/src/docs/dev/deprecations-additions-and-compatibility.asciidoc +++ b/cypher/cypher-docs/src/docs/dev/deprecations-additions-and-compatibility.asciidoc @@ -71,7 +71,6 @@ Replaced by: CREATE CONSTRAINT FOR ... REQUIRE ... ---- - a| label:functionality[] label:deprecated[] @@ -184,26 +183,6 @@ Please instead use: ---- point.withinBBox(point({x:1, y:1}), point({x:0, y:0}), point({x:2, y:2})) ---- - -a| -label:functionality[] -label:deprecated[] -label:new[] -[source, cypher, role="noheader"] ----- -DROP CONSTRAINT -ON (n:LabelName) -ASSERT (n.propertyName_1, …, n.propertyName_n) IS UNIQUE ----- -a| -Unique property constraints now allow multiple properties. - -Replaced by: -[source, cypher, role="noheader"] ----- -DROP CONSTRAINT name [IF EXISTS] ----- - |=== === New features @@ -223,37 +202,54 @@ CREATE CONSTRAINT FOR ... REQUIRE ... a| New syntax for creating constraints, applicable to all constraint types. - a| -label:syntax[] +label:functionality[] label:new[] [source, cypher, role="noheader"] ---- CREATE CONSTRAINT [constraint_name] [IF NOT EXISTS] -FOR ... -REQUIRE ... IS NOT NULL -OPTIONS "{" "}" +FOR (n:LabelName) +REQUIRE (n.propertyName_1, …, n.propertyName_n) IS UNIQUE +[OPTIONS "{" option: value[, ...] "}"] ---- a| -Existence constraints now allow an `OPTIONS` map, however, at this point there are no available values for the map. - +Unique property constraints now allow multiple properties, ensuring that the combination of property values are unique. a| label:functionality[] label:new[] +label:deprecated[] +[source, cypher, role="noheader"] +---- +DROP CONSTRAINT +ON (n:LabelName) +ASSERT (n.propertyName_1, …, n.propertyName_n) IS UNIQUE +---- +a| +Unique property constraints now allow multiple properties. + +Replaced by: +[source, cypher, role="noheader"] +---- +DROP CONSTRAINT name [IF EXISTS] +---- + +a| +label:syntax[] +label:new[] [source, cypher, role="noheader"] ---- CREATE CONSTRAINT [constraint_name] [IF NOT EXISTS] -FOR (n:LabelName) -REQUIRE (n.propertyName_1, …, n.propertyName_n) IS UNIQUE -[OPTIONS "{" option: value[, ...] "}"] +FOR ... +REQUIRE ... IS NOT NULL +OPTIONS "{" "}" ---- a| -Unique property constraints now allow multiple properties, ensuring that the combination of property values are unique. +Existence constraints now allow an `OPTIONS` map, however, at this point there are no available values for the map. a| label:functionality[] -label:new[] +label:added[] [source, cypher, role="noheader"] ---- CREATE LOOKUP INDEX [index_name] [IF NOT EXISTS] @@ -363,23 +359,25 @@ New Cypher command for modifying a database by changing its access mode. a| label:functionality[] -label:new[] +label:new[] + +New privilege: [source, cypher, role="noheader"] ---- ALTER DATABASE ---- a| -New Cypher command for administering privilege for modifying databases. +New privilege that allows a user to modify databases. a| label:functionality[] -label:new[] +label:new[] + +New privilege: [source, cypher, role="noheader"] ---- SET DATABASE ACCESS ---- a| -New Cypher command for administering the privilege for modifying database access mode. +New privilege that allows a user to modify database access mode. a| label:functionality[] label:new[] From 99ebf8302a36f8e1c764f1f3929417c3bd54ba3d Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Thu, 13 Jan 2022 09:32:09 +0000 Subject: [PATCH 2/2] minor fix --- .../docs/dev/deprecations-additions-and-compatibility.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypher/cypher-docs/src/docs/dev/deprecations-additions-and-compatibility.asciidoc b/cypher/cypher-docs/src/docs/dev/deprecations-additions-and-compatibility.asciidoc index 14a1df841d8..44213287557 100644 --- a/cypher/cypher-docs/src/docs/dev/deprecations-additions-and-compatibility.asciidoc +++ b/cypher/cypher-docs/src/docs/dev/deprecations-additions-and-compatibility.asciidoc @@ -249,7 +249,7 @@ Existence constraints now allow an `OPTIONS` map, however, at this point there a a| label:functionality[] -label:added[] +label:new[] [source, cypher, role="noheader"] ---- CREATE LOOKUP INDEX [index_name] [IF NOT EXISTS]