diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-01-04 23:12:38 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-01-05 01:11:44 +0200 |
| commit | c27a7c713f67524c9dbfcbad08ccb337d1b2bdb0 (patch) | |
| tree | d80dcc67330b5b599c9ab3ddbfe1aee3e6b9188d /res | |
| parent | 8c2418db15f44f5e5bc23dc8cd1193ff0d52ce16 (diff) | |
use meta attribute '__' prefix for __HEAD, __Parent, __Commit labels
Diffstat (limited to 'res')
| -rw-r--r-- | res/neo4j/reset-db__single_link.cypher | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/res/neo4j/reset-db__single_link.cypher b/res/neo4j/reset-db__single_link.cypher index 72242ee1..194d015e 100644 --- a/res/neo4j/reset-db__single_link.cypher +++ b/res/neo4j/reset-db__single_link.cypher @@ -1,5 +1,5 @@ // Flush -match (n) optional match (n)-[r]-() delete n,r; +match (n) optional match (n)-[r]-() delete r,n; // // Constraints @@ -9,8 +9,10 @@ match (n) optional match (n)-[r]-() delete n,r; create constraint on (x:Person) assert x.name is unique; create constraint on (x:Skill) assert x.name is unique; +// init commit block chain +create (n:__HEAD:__Commit {hash: 'adc83b19e793491b1c6ea0fd8b46cd9f32e592fc', blob: ''}) create (n)-[:__Parent]->(n); + // Data -create (n:HEAD:Commit {hash: 'adc83b19e793491b1c6ea0fd8b46cd9f32e592fc', blob: ''}); create (x:Person {name:'Bob', id: 'p_0', description: 'Bob is ...' }); create (x:Skill {name:'Kung-Fu', id: 's_0', description: 'Kung-Fu is ...'}); match (m:Person {id: 'p_0'}),(n:Skill {id: 's_0'}) create (m)-[:Knows {id: 'l_0'}]->(n); |
