From 33df8d1d6bafe04bc15a3df3ca9e9e6cb9ec5030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Thu, 14 Mar 2019 17:40:15 +0100 Subject: [PATCH] Add a unique contraint for all node IDs --- neo4j/migrate.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/neo4j/migrate.sh b/neo4j/migrate.sh index 1ec5212..d18f24c 100755 --- a/neo4j/migrate.sh +++ b/neo4j/migrate.sh @@ -15,4 +15,5 @@ CREATE CONSTRAINT ON (p:Post) ASSERT p.slug IS UNIQUE; CREATE CONSTRAINT ON (c:Category) ASSERT c.slug IS UNIQUE; CREATE CONSTRAINT ON (u:User) ASSERT u.slug IS UNIQUE; CREATE CONSTRAINT ON (o:Organization) ASSERT o.slug IS UNIQUE; +CREATE CONSTRAINT ON (n) ASSERT n.id IS UNIQUE; ' | cypher-shell