Skip to content

Conversation

@martin-neotech
Copy link
Contributor

@martin-neotech martin-neotech commented Jul 20, 2022

@martin-neotech martin-neotech added the 5.0 Neo4j version 5.0 label Jul 20, 2022
Copy link
Collaborator

@Hunterness Hunterness left a 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

@netlify
Copy link

netlify bot commented Jul 21, 2022

Deploy Preview for neo4j-docs-cypher ready!

Name Link
🔨 Latest commit 442c38f
🔍 Latest deploy log https://app.netlify.com/sites/neo4j-docs-cypher/deploys/62d9c4952b2467000957a6ab
😎 Deploy Preview https://deploy-preview-9--neo4j-docs-cypher.netlify.app/cypher-manual/5.0/deprecations-additions-removals-compatibility
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@martin-neotech martin-neotech merged commit 71ced05 into neo4j:dev Jul 21, 2022
@martin-neotech martin-neotech added the removed Removed syntax or feature (Only label the specific version that introduced this) label Jul 22, 2022
label:removed[]
[source, cypher, role="noheader", indent=0]
----
DROP CONSTRAINT ON (n:Label) ASSERT (n.prop) IS NODE KEY
Copy link
Collaborator

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
Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.0 Neo4j version 5.0 removed Removed syntax or feature (Only label the specific version that introduced this)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants