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..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 @@ -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,33 +202,50 @@ 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[] @@ -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[]