summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-04-02 00:28:16 +0300
committerLV-426 <lv-426@taproot.org.il>2015-04-02 00:29:00 +0300
commitec697c91dd7b4ec26b2683aab8c39c8b21c63cd3 (patch)
treec7defb59898b8b754bd28d205dc1c0b92361b415
parent20ce22ec4b840918283016ca3eba9ad678531080 (diff)
adding __RZDOC unique name constraint (may change later with per-user namespaces)
-rw-r--r--res/neo4j/reset-db__clean.cypher1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/neo4j/reset-db__clean.cypher b/res/neo4j/reset-db__clean.cypher
index a8348a6c..0cedc651 100644
--- a/res/neo4j/reset-db__clean.cypher
+++ b/res/neo4j/reset-db__clean.cypher
@@ -15,6 +15,7 @@ create (n:__RZDOC_NS_META_a000a000:__COMMIT:__HEAD {hash: 'adc83b19e793491b1c6ea
// FIXME: use wildcard constraint when supported
//
create constraint on (x:__RZDOC) assert x.id is unique;
+create constraint on (x:__RZDOC) assert x.name is unique;
create constraint on (x:Person) assert x.id is unique;
create constraint on (x:Skill) assert x.id is unique;