summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-02-02 21:32:42 +0200
committerLV-426 <lv-426@taproot.org.il>2015-02-02 21:37:02 +0200
commit167397fe94592c65733300cfe371dcb49f74d440 (patch)
tree6d36e402556833f6f264b320508a399516dff5db
parent5fbf4be92e32065ae26cacc9d0e3b6b86925b10c (diff)
reset-db__single_link.cypher: add unique X.id constraints
-rw-r--r--res/neo4j/reset-db__single_link.cypher4
1 files changed, 3 insertions, 1 deletions
diff --git a/res/neo4j/reset-db__single_link.cypher b/res/neo4j/reset-db__single_link.cypher
index ff1d5151..01bfb051 100644
--- a/res/neo4j/reset-db__single_link.cypher
+++ b/res/neo4j/reset-db__single_link.cypher
@@ -6,8 +6,10 @@ match (n) optional match (n)-[r]-() delete r,n;
//
// FIXME: use wildcard constraint when supported
//
+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;
-create constraint on (x:Skill) assert x.name is unique;
+create constraint on (x:Skill) assert x.name is unique;
// init commit block chain
create (n:__HEAD:__Commit {hash: 'da39a3ee5e6b4b0d3255bfef95601890afd80709', blob: '', id: 'da39a3ee5e6b4b0d3255bfef95601890afd80709', name: 'root-commit', ts_created: 0 });