From 3aef664c8c087e4ea6a734189cad21ec730a3468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Sun, 20 Jan 2019 23:18:42 +0100 Subject: [PATCH] Import collections in order --- neo4j/import/import.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neo4j/import/import.sh b/neo4j/import/import.sh index 88a2666dc..a08115005 100755 --- a/neo4j/import/import.sh +++ b/neo4j/import/import.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash SCRIPT_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" echo "MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n,r;" | cypher-shell -cat $SCRIPT_DIRECTORY/*.cql | cypher-shell +for collection in "users" "contributions" "comments" +do + echo "Import ${collection}..." && cat $SCRIPT_DIRECTORY/$collection.cql | cypher-shell +done