diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-05-01 03:37:18 +0300 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-05-01 03:37:18 +0300 |
| commit | 85d649d6909c563cf22e23939b71e5e75fe99b74 (patch) | |
| tree | f86905eeba6a4dc01da58bff5f41fa3b6f43bfdb /res | |
| parent | 2c614eb0f853f6e68e9a89ac4b062157689392ac (diff) | |
deprecating reset-db__clean.cypher, rm reset-db__single_link
Diffstat (limited to 'res')
| -rw-r--r-- | res/neo4j/reset-db__clean.cypher | 22 | ||||
| -rw-r--r-- | res/neo4j/reset-db__single_link.cypher | 8 |
2 files changed, 4 insertions, 26 deletions
diff --git a/res/neo4j/reset-db__clean.cypher b/res/neo4j/reset-db__clean.cypher index 5c8c4950..2e5b401a 100644 --- a/res/neo4j/reset-db__clean.cypher +++ b/res/neo4j/reset-db__clean.cypher @@ -1,22 +1,8 @@ -// Flush -match (n) optional match (n)-[r]-() delete r,n; - - -// init mainpage doc -create (n:__RZDOC {id: 'a000a000', name: 'Welcome Rhizi'}); - -// init commit block chain -create (n:__RZDOC_NS_META_a000a000:__COMMIT:__HEAD {hash: 'adc83b19e793491b1c6ea0fd8b46cd9f32e592fc', blob: '', id: 'adc83b19e793491b1c6ea0fd8b46cd9f32e592fc', name: 'root-commit', ts_created: 0 }); - - -// -// Constraints // -// FIXME: use wildcard constraint when supported +// [!] Deprecated in favor of auto-initialization by rhizi server, +// left as to aid clearing the DB during development. // -create constraint on (x:__RZDOC) assert x.id is unique; -create constraint on (x:__RZDOC) assert x.name is unique; -create constraint on (x:Person) assert x.id is unique; -create constraint on (x:Skill) assert x.id is unique; +// Flush +match (n) optional match (n)-[r]-() delete r,n; diff --git a/res/neo4j/reset-db__single_link.cypher b/res/neo4j/reset-db__single_link.cypher deleted file mode 100644 index 359e53ac..00000000 --- a/res/neo4j/reset-db__single_link.cypher +++ /dev/null @@ -1,8 +0,0 @@ -// -// [!] call reset-db__clean.cypher first -// - -// Data -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); |
