diff options
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); |
