summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-03-30 21:00:46 +0300
committerLV-426 <lv-426@taproot.org.il>2015-04-01 22:25:55 +0300
commita07d6306340ae2f5978af173d7bb5a4c5683ada5 (patch)
tree935163c48baefb9551a70445a11db8b756b080ab /res
parent2d926c1dede86ab5736f3c17acf1babf0dbde4dd (diff)
reset-db__clean.cypher: unique __RZDOC.id constraint
Diffstat (limited to 'res')
-rw-r--r--res/neo4j/reset-db__clean.cypher2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/neo4j/reset-db__clean.cypher b/res/neo4j/reset-db__clean.cypher
index e3034121..f63e325d 100644
--- a/res/neo4j/reset-db__clean.cypher
+++ b/res/neo4j/reset-db__clean.cypher
@@ -14,6 +14,8 @@ create (n:__RZDOC_NS_META_a000a000:__Commit:__HEAD {hash: 'da39a3ee5e6b4b0d3255b
//
// FIXME: use wildcard constraint when supported
//
+create constraint on (x:__RZDOC) assert x.id is unique;
+
create constraint on (x:Person) assert x.id is unique;
create constraint on (x:Skill) assert x.id is unique;
create constraint on (x:Person) assert x.name is unique;