mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Import collections in order
This commit is contained in:
parent
d0fa8b7e21
commit
3aef664c8c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user