From c27a7c713f67524c9dbfcbad08ccb337d1b2bdb0 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Sun, 4 Jan 2015 23:12:38 +0200 Subject: use meta attribute '__' prefix for __HEAD, __Parent, __Commit labels --- res/neo4j/reset-db__single_link.cypher | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'res') 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); -- cgit v1.3.1