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