From beee4310c50fc81ad3e37959862c6786383e4d11 Mon Sep 17 00:00:00 2001 From: Therese Magnusson Date: Thu, 2 Dec 2021 10:44:22 +0100 Subject: [PATCH] Add removal of drop indexes/constraints by schema commands to the 5.0 section in the deprecations, additions and removals chapter --- ...tions-additions-and-compatibility.asciidoc | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) 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 4e2f5587f8b..a15346e6263 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 @@ -94,6 +94,46 @@ SHOW INDEXES YIELD * SHOW CONSTRAINTS YIELD * ---- +a| +label:syntax[] +label:removed[] +[source, cypher, role="noheader"] +---- +DROP INDEX ON :Label(prop) +---- +a| +Replaced by: +[source, cypher, role="noheader"] +---- +DROP INDEX name +---- + +a| +label:syntax[] +label:removed[] +[source, cypher, role="noheader"] +---- +DROP CONSTRAINT ON (n:Label) ASSERT (n.prop) IS NODE KEY +---- +[source, cypher, role="noheader"] +---- +DROP CONSTRAINT ON (n:Label) ASSERT (n.prop) IS UNIQUE +---- +[source, cypher, role="noheader"] +---- +DROP CONSTRAINT ON (n:Label) ASSERT exists(n.prop) +---- +[source, cypher, role="noheader"] +---- +DROP CONSTRAINT ON ()-[r:Type]-() ASSERT exists(r.prop) +---- +a| +Replaced by: +[source, cypher, role="noheader"] +---- +DROP CONSTRAINT name +---- + a| label:syntax[] label:removed[] +