diff --git a/neo4j/change_report_node_to_relationship.sh b/neo4j/change_disabled_relationship_to_decided_relationship.sh similarity index 59% rename from neo4j/change_report_node_to_relationship.sh rename to neo4j/change_disabled_relationship_to_decided_relationship.sh index f8dd639be..76703b373 100755 --- a/neo4j/change_report_node_to_relationship.sh +++ b/neo4j/change_disabled_relationship_to_decided_relationship.sh @@ -16,11 +16,10 @@ do done echo " -MATCH (submitter:User)-[:REPORTED]->(report:Report)-[:REPORTED]->(resource) -DETACH DELETE report -CREATE (submitter)-[reported:REPORTED]->(resource) -SET reported.createdAt = toString(datetime()) -SET reported.reasonCategory = 'other' -SET reported.reasonDescription = '!!! Created automatically to ensure database consistency! Creation date is when the database manipulation happened.' -RETURN reported; +MATCH (moderator:User)-[disabled:DISABLED]->(resource) +DELETE disabled +CREATE (moderator)-[decided:DECIDED]->(resource) +SET decided.createdAt = toString(datetime()) +SET decided.disabled = true +RETURN decided; " | cypher-shell