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