diff --git a/modules/ROOT/pages/constraints/examples.adoc b/modules/ROOT/pages/constraints/examples.adoc index 669a33f2f..78024e8df 100644 --- a/modules/ROOT/pages/constraints/examples.adoc +++ b/modules/ROOT/pages/constraints/examples.adoc @@ -1207,15 +1207,11 @@ To get all columns, use `+SHOW INDEXES YIELD * WHERE ...+`. == Deprecated syntax * xref::constraints/examples.adoc#administration-constraints-create-a-unique-constraint-using-deprecated-syntax[] -* xref::constraints/examples.adoc#administration-constraints-drop-a-unique-constraint[] * xref::constraints/examples.adoc#administration-constraints-create-a-node-property-existence-constraint-using-deprecated-syntax-1[] * xref::constraints/examples.adoc#administration-constraints-create-a-node-property-existence-constraint-using-deprecated-syntax-2[] -* xref::constraints/examples.adoc#administration-constraints-drop-a-node-property-existence-constraint[] * xref::constraints/examples.adoc#administration-constraints-create-a-relationship-property-existence-constraint-using-deprecated-syntax-1[] * xref::constraints/examples.adoc#administration-constraints-create-a-relationship-property-existence-constraint-using-deprecated-syntax-2[] -* xref::constraints/examples.adoc#administration-constraints-drop-a-relationship-property-existence-constraint[] * xref::constraints/examples.adoc#administration-constraints-create-a-node-key-constraint-using-deprecated-syntax[] -* xref::constraints/examples.adoc#administration-constraints-drop-a-node-key-constraint[] [discrete] @@ -1246,34 +1242,6 @@ Unique constraints added: 1 ====== -[discrete] -[[administration-constraints-drop-a-unique-constraint]] -=== Drop a unique constraint - -By using `DROP CONSTRAINT`, a B-tree index-backed unique constraint is removed from the database. - - -.+DROP CONSTRAINT+ -====== - -.Query -[source, cypher, indent=0] ----- -DROP CONSTRAINT ON (book:Book) ASSERT book.isbn IS UNIQUE ----- - -.Result -[queryresult] ----- -+-------------------+ -| No data returned. | -+-------------------+ -Unique constraints removed: 1 ----- - -====== - - [discrete] [[administration-constraints-create-a-node-property-existence-constraint-using-deprecated-syntax-1]] === Create a node property existence constraint using deprecated syntax 1 @@ -1330,34 +1298,6 @@ Property existence constraints added: 1 ====== -[discrete] -[[administration-constraints-drop-a-node-property-existence-constraint]] -=== Drop a node property existence constraint - -By using `DROP CONSTRAINT`, a node property existence constraint is removed from the database. - - -.+DROP CONSTRAINT+ -====== - -.Query -[source, cypher, indent=0] ----- -DROP CONSTRAINT ON (book:Book) ASSERT exists(book.isbn) ----- - -.Result -[queryresult] ----- -+-------------------+ -| No data returned. | -+-------------------+ -Property existence constraints removed: 1 ----- - -====== - - [discrete] [[administration-constraints-create-a-relationship-property-existence-constraint-using-deprecated-syntax-1]] === Create a relationship property existence constraint using deprecated syntax 1 @@ -1414,34 +1354,6 @@ Property existence constraints added: 1 ====== -[discrete] -[[administration-constraints-drop-a-relationship-property-existence-constraint]] -=== Drop a relationship property existence constraint - -To remove a relationship property existence constraint from the database, use `DROP CONSTRAINT`. - - -.+DROP CONSTRAINT+ -====== - -.Query -[source, cypher, indent=0] ----- -DROP CONSTRAINT ON ()-[like:LIKED]-() ASSERT exists(like.day) ----- - -.Result -[queryresult] ----- -+-------------------+ -| No data returned. | -+-------------------+ -Property existence constraints removed: 1 ----- - -====== - - [discrete] [[administration-constraints-create-a-node-key-constraint-using-deprecated-syntax]] === Create a node key constraint using deprecated syntax @@ -1469,31 +1381,3 @@ Node key constraints added: 1 ====== - -[discrete] -[[administration-constraints-drop-a-node-key-constraint]] -=== Drop a node key constraint - -Use `DROP CONSTRAINT` to remove a B-tree index-backed node key constraint from the database. - - -.+DROP CONSTRAINT+ -====== - -.Query -[source, cypher, indent=0] ----- -DROP CONSTRAINT ON (n:Person) ASSERT (n.firstname, n.surname) IS NODE KEY ----- - -.Result -[queryresult] ----- -+-------------------+ -| No data returned. | -+-------------------+ -Node key constraints removed: 1 ----- - -====== - diff --git a/modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc b/modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc index 654312f49..59657ef98 100644 --- a/modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc +++ b/modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc @@ -35,8 +35,59 @@ The ability to dropp an index based on the schema has been removed. Use the command to drop an index by the name of the index instead, `DROP INDEX index_name`. -|=== +a| +label:functionality[] +label:removed[] +[source, cypher, role="noheader", indent=0] +---- +DROP CONSTRAINT ON (n:Label) ASSERT (n.prop) IS NODE KEY +---- +a| +The ability to dropp a constraint based on the schema has been removed. + +Use the command to drop a constraint by the name of the constraint instead, `DROP CONSTRAINT constraint_name`. + + +a| +label:functionality[] +label:removed[] +[source, cypher, role="noheader", indent=0] +---- +DROP CONSTRAINT ON (n:Label) ASSERT (n.prop) IS UNIQUE +---- +a| +The ability to dropp a constraint based on the schema has been removed. + +Use the command to drop a constraint by the name of the constraint instead, `DROP CONSTRAINT constraint_name`. + + +a| +label:functionality[] +label:removed[] +[source, cypher, role="noheader", indent=0] +---- +DROP CONSTRAINT ON (n:Label) ASSERT exists(n.prop) +---- +a| +The ability to dropp a constraint based on the schema has been removed. + +Use the command to drop a constraint by the name of the constraint instead, `DROP CONSTRAINT constraint_name`. + + +a| +label:functionality[] +label:removed[] +[source, cypher, role="noheader", indent=0] +---- +DROP CONSTRAINT ON ()-[r:Type]-() ASSERT exists(r.prop) +---- +a| +The ability to dropp a constraint based on the schema has been removed. + +Use the command to drop a constraint by the name of the constraint instead, `DROP CONSTRAINT constraint_name`. + +|=== // === Deprecated features diff --git a/modules/ROOT/pages/execution-plans/operator-summary.adoc b/modules/ROOT/pages/execution-plans/operator-summary.adoc index b4b4c8ac4..5db74de26 100644 --- a/modules/ROOT/pages/execution-plans/operator-summary.adoc +++ b/modules/ROOT/pages/execution-plans/operator-summary.adoc @@ -196,30 +196,6 @@ Tests for the absence of a pattern predicate. | label:yes[] | -| xref::execution-plans/operators.adoc#query-plan-drop-node-key-constraint[DropNodeKeyConstraint] -| Drops a node key constraint from a set of properties for all nodes with a certain label. -| label:yes[] -| label:yes[] -| label:deprecated[] - -| xref::execution-plans/operators.adoc#query-plan-drop-node-property-existence-constraint[DropNodePropertyExistenceConstraint] -| Drops an existence constraint from a property for all nodes with a certain label. -| label:yes[] -| label:yes[] -| label:deprecated[] - -| xref::execution-plans/operators.adoc#query-plan-drop-relationship-property-existence-constraint[DropRelationshipPropertyExistenceConstraint] -| Drops an existence constraint from a property for all relationships of a certain type. -| label:yes[] -| label:yes[] -| label:deprecated[] - -| xref::execution-plans/operators.adoc#query-plan-drop-unique-constraint[DropUniqueConstraint] -| Drops a unique constraint from a set of properties for all nodes with a certain label. -| label:yes[] -| label:yes[] -| label:deprecated[] - | xref::execution-plans/operators.adoc#query-plan-eager[Eager] | For isolation purposes, `Eager` ensures that operations affecting subsequent operations are executed fully for the whole dataset before continuing execution. | diff --git a/modules/ROOT/pages/execution-plans/operators.adoc b/modules/ROOT/pages/execution-plans/operators.adoc index 856fbf562..3173421e8 100644 --- a/modules/ROOT/pages/execution-plans/operators.adoc +++ b/modules/ROOT/pages/execution-plans/operators.adoc @@ -4640,47 +4640,6 @@ Total database accesses: ? ====== -[role=deprecated] -[[query-plan-drop-unique-constraint]] -== Drop Unique Constraint -// DropUniqueConstraint (deprecated) - -The `DropUniqueConstraint` operator removes a unique constraint from all nodes having a certain set of properties and label. -The following query will drop a unique constraint on the `name` property of nodes with the `Country` label. - - -.DropUniqueConstraint -====== - -.Query -[source, cypher, role="noplay"] ----- -DROP CONSTRAINT ON (c:Country) ASSERT c.name is UNIQUE ----- - -.Query Plan -[source, query plan, role="noheader"] ----- -Compiler CYPHER 4.4 - -Planner ADMINISTRATION - -Runtime SCHEMA - -Runtime version 4.4 - -+-----------------+-----------------------------------------------------+ -| Operator | Details | -+-----------------+-----------------------------------------------------+ -| +DropConstraint | CONSTRAINT ON (c:Country) ASSERT (c.name) IS UNIQUE | -+-----------------+-----------------------------------------------------+ - -Total database accesses: ? ----- - -====== - - [[query-plan-do-nothing-if-exists-constraint]] == Do Nothing If Exists (constraint) // DoNothingIfExists(CONSTRAINT) @@ -4767,47 +4726,6 @@ Total database accesses: ? ====== -[role=deprecated] -[[query-plan-drop-node-property-existence-constraint]] -== Drop Node Property Existence Constraint -// DropNodePropertyExistenceConstraint (deprecated) - -The `DropNodePropertyExistenceConstraint` operator removes an existence constraint from a property for all nodes having a certain label. -This will only appear in Enterprise Edition. - - -.DropNodePropertyExistenceConstraint -====== - -.Query -[source, cypher, role="noplay"] ----- -DROP CONSTRAINT ON (p:Person) ASSERT exists(p.name) ----- - -.Query Plan -[source, query plan, role="noheader"] ----- -Compiler CYPHER 4.4 - -Planner ADMINISTRATION - -Runtime SCHEMA - -Runtime version 4.4 - -+-----------------+------------------------------------------------+ -| Operator | Details | -+-----------------+------------------------------------------------+ -| +DropConstraint | CONSTRAINT ON (p:Person) ASSERT exists(p.name) | -+-----------------+------------------------------------------------+ - -Total database accesses: ? ----- - -====== - - [[query-plan-create-node-key-constraint]] == Create Node Key Constraint // CreateNodeKeyConstraint @@ -4850,47 +4768,6 @@ Total database accesses: ? ====== -[role=deprecated] -[[query-plan-drop-node-key-constraint]] -== Drop Node Key Constraint -// DropNodeKeyConstraint (deprecated) - -The `DropNodeKeyConstraint` operator removes a node key constraint from a set of properties for all nodes having a certain label. -This will only appear in Enterprise Edition. - - -.DropNodeKeyConstraint -====== - -.Query -[source, cypher, role="noplay"] ----- -DROP CONSTRAINT ON (e:Employee) ASSERT (e.firstname, e.surname) IS NODE KEY ----- - -.Query Plan -[source, query plan, role="noheader"] ----- -Compiler CYPHER 4.4 - -Planner ADMINISTRATION - -Runtime SCHEMA - -Runtime version 4.4 - -+-----------------+------------------------------------------------------------------------+ -| Operator | Details | -+-----------------+------------------------------------------------------------------------+ -| +DropConstraint | CONSTRAINT ON (e:Employee) ASSERT (e.firstname, e.surname) IS NODE KEY | -+-----------------+------------------------------------------------------------------------+ - -Total database accesses: ? ----- - -====== - - [[query-plan-create-relationship-property-existence-constraint]] == Create Relationship Property Existence Constraint // CreateRelationshipPropertyExistenceConstraint @@ -4932,47 +4809,6 @@ Total database accesses: ? ====== -[role=deprecated] -[[query-plan-drop-relationship-property-existence-constraint]] -== Drop Relationship Property Existence Constraint -// DropRelationshipPropertyExistenceConstraint (deprecated) - -The `DropRelationshipPropertyExistenceConstraint` operator removes an existence constraint from a property for all relationships of a certain type. -This will only appear in Enterprise Edition. - - -.DropRelationshipPropertyExistenceConstraint -====== - -.Query -[source, cypher, role="noplay"] ----- -DROP CONSTRAINT ON ()-[l:LIKED]-() ASSERT exists(l.when) ----- - -.Query Plan -[source, query plan, role="noheader"] ----- -Compiler CYPHER 4.4 - -Planner ADMINISTRATION - -Runtime SCHEMA - -Runtime version 4.4 - -+-----------------+-----------------------------------------------------+ -| Operator | Details | -+-----------------+-----------------------------------------------------+ -| +DropConstraint | CONSTRAINT ON ()-[l:LIKED]-() ASSERT exists(l.when) | -+-----------------+-----------------------------------------------------+ - -Total database accesses: ? ----- - -====== - - [[query-plan-drop-constraint]] == Drop Constraint // DropConstraint