Skip to content

Commit 772b511

Browse files
constraints drop
1 parent 855d5dc commit 772b511

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

modules/ROOT/pages/constraints/managing-constraints.adoc

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ A constraint cannot be created until the index has been dropped.
10701070
| *Property uniqueness constraint*
10711071
|
10721072
^| ❌
1073-
|
1073+
|
10741074

10751075
| *Property existence constraint*
10761076
^| ❌
@@ -1237,7 +1237,7 @@ Node(9) with label `Movie` required the property `title` to be of type `STRING`,
12371237
| *Property uniqueness constraint*
12381238
|
12391239
^| ❌
1240-
|
1240+
|
12411241

12421242
| *Property existence constraint*
12431243
^| ❌
@@ -1339,7 +1339,7 @@ RETURN wrote
13391339
| Query
13401340

13411341
| Node property uniqueness constraint
1342-
a|
1342+
a|
13431343
[source]
13441344
----
13451345
MATCH (n1:Label), (n2:Label)
@@ -1348,7 +1348,7 @@ RETURN n1, n2
13481348
----
13491349

13501350
| Relationship property uniqueness constraint
1351-
a|
1351+
a|
13521352
[source]
13531353
----
13541354
MATCH ()-[r1:REL_TYPE]->(), ()-[r2:REL_TYPE]->()
@@ -1357,7 +1357,7 @@ RETURN r1, r2
13571357
----
13581358

13591359
| Node property existence constraint
1360-
a|
1360+
a|
13611361
[source]
13621362
----
13631363
MATCH (n:Label)
@@ -1366,7 +1366,7 @@ RETURN n
13661366
----
13671367

13681368
| Relationship property existence constraint
1369-
a|
1369+
a|
13701370
[source]
13711371
----
13721372
MATCH ()-[r:REL_TYPE]->()
@@ -1375,7 +1375,7 @@ RETURN r
13751375
----
13761376

13771377
| Node property type constraint
1378-
a|
1378+
a|
13791379
[source]
13801380
----
13811381
MATCH (n:Label)
@@ -1384,7 +1384,7 @@ RETURN n
13841384
----
13851385

13861386
| Relationship property type constraint
1387-
a|
1387+
a|
13881388
[source]
13891389
----
13901390
MATCH ()-[r:REL_TYPE]->()
@@ -1393,7 +1393,7 @@ RETURN r
13931393
----
13941394

13951395
| Node key constraint
1396-
a|
1396+
a|
13971397
[source]
13981398
----
13991399
MATCH (n1:Label), (n2:Label)
@@ -1407,7 +1407,7 @@ RETURN n AS node, 'non-existing' AS reason
14071407
----
14081408

14091409
| Relationship key constraint
1410-
a|
1410+
a|
14111411
[source]
14121412
----
14131413
MATCH ()-[r1:REL_TYPE]->(), ()-[r2:REL_TYPE]->()
@@ -1676,6 +1676,9 @@ label:default-output[] label:new[Introduced in 5.9]
16761676
== DROP CONSTRAINT
16771677

16781678
Constraints are dropped using the `DROP CONSTRAINT` command.
1679+
It is possible to drop constraints created in a different Cypher version than the one in use.
1680+
For example, although link:https://neo4j.com/docs/cypher-manual/25/values-and-types/vector/[`VECTOR`] property type constraints were added in Cypher 25, such constraints can still be dropped using Cypher 5.
1681+
16791682
For the full command syntax to drop constraints, see xref:constraints/syntax.adoc#drop-constraint[Syntax -> DROP CONSTRAINT].
16801683

16811684
[NOTE]
@@ -1764,4 +1767,4 @@ DROP CONSTRAINT missing_constraint_name IF EXISTS
17641767
`DROP CONSTRAINT missing_constraint_name IF EXISTS` has no effect. `missing_constraint_name` does not exist.
17651768
----
17661769
1767-
======
1770+
======

0 commit comments

Comments
 (0)