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