diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-02-02 21:32:42 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-02-02 21:37:02 +0200 |
| commit | 167397fe94592c65733300cfe371dcb49f74d440 (patch) | |
| tree | 6d36e402556833f6f264b320508a399516dff5db | |
| parent | 5fbf4be92e32065ae26cacc9d0e3b6b86925b10c (diff) | |
reset-db__single_link.cypher: add unique X.id constraints
| -rw-r--r-- | res/neo4j/reset-db__single_link.cypher | 4 |
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 }); |
