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/neo4j/reset-db__clean.cypher | |
| parent | 2c614eb0f853f6e68e9a89ac4b062157689392ac (diff) | |
deprecating reset-db__clean.cypher, rm reset-db__single_link
Diffstat (limited to 'res/neo4j/reset-db__clean.cypher')
| -rw-r--r-- | res/neo4j/reset-db__clean.cypher | 22 |
1 files changed, 4 insertions, 18 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; |
