summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-03-01 15:04:41 +0200
committerLV-426 <lv-426@taproot.org.il>2015-03-01 15:04:41 +0200
commita5e68a180e7cc19e8529a34b7fd58edaf71884d0 (patch)
treef9148c4d2b6feef034e056372d057c15b1dcba37 /res
parent62d7291a62dacd5c4ed1faa96efb87d948958cfa (diff)
reset-db__clean.cypher: create constraints last
Diffstat (limited to 'res')
-rw-r--r--res/neo4j/reset-db__clean.cypher5
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 });