diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-03-01 15:04:41 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-03-01 15:04:41 +0200 |
| commit | a5e68a180e7cc19e8529a34b7fd58edaf71884d0 (patch) | |
| tree | f9148c4d2b6feef034e056372d057c15b1dcba37 | |
| parent | 62d7291a62dacd5c4ed1faa96efb87d948958cfa (diff) | |
reset-db__clean.cypher: create constraints last
| -rw-r--r-- | res/neo4j/reset-db__clean.cypher | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/res/neo4j/reset-db__clean.cypher b/res/neo4j/reset-db__clean.cypher index 29f1afd7..e9c2b395 100644 --- a/res/neo4j/reset-db__clean.cypher +++ b/res/neo4j/reset-db__clean.cypher @@ -1,6 +1,9 @@ // Flush match (n) optional match (n)-[r]-() delete r,n; +// init commit block chain +create (n:__HEAD:__Commit {hash: 'da39a3ee5e6b4b0d3255bfef95601890afd80709', blob: '', id: 'da39a3ee5e6b4b0d3255bfef95601890afd80709', name: 'root-commit', ts_created: 0 }); + // // Constraints // @@ -11,5 +14,3 @@ create constraint on (x:Skill) assert x.id is unique; 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: 'da39a3ee5e6b4b0d3255bfef95601890afd80709', blob: '', id: 'da39a3ee5e6b4b0d3255bfef95601890afd80709', name: 'root-commit', ts_created: 0 }); |
