-
Notifications
You must be signed in to change notification settings - Fork 64
5.0 remove drop constraint by schema #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.0 remove drop constraint by schema #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are missing updates in https://github.com/neo4j/docs-cypher/blob/74533af7b1d94ccf16a8d2c5c55496c5c4d52ffb/modules/ROOT/pages/constraints/syntax.adoc
And the deprecations/additions/removal section which I assume is the TODO in the description
✅ Deploy Preview for neo4j-docs-cypher ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
| label:removed[] | ||
| [source, cypher, role="noheader", indent=0] | ||
| ---- | ||
| DROP CONSTRAINT ON (n:Label) ASSERT (n.prop) IS NODE KEY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the version we added before, we had all drop command in one place:
a|
label:functionality[]
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
----
so instead of having 4 entries we had one, cause it's the same functionality that has been removed
a|
label:functionality[]
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|
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`.
----
|
|
||
| [discrete] | ||
| [[administration-constraints-drop-a-unique-constraint]] | ||
| === Drop a unique constraint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think you're missing removing things in the .../constraints/syntax.adoc file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Syntax
DROP CONSTRAINT ON ...has been removed in Neo4j 5.0.PR for
DROP INDEX ONwas merged in #7