mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Manipulate database to replace report node with direct REPORTED relation
This commit is contained in:
parent
1c8385120c
commit
d5e1a67e0c
@ -0,0 +1,7 @@
|
||||
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! Date-time is this creation date and time.'
|
||||
RETURN reported
|
||||
Loading…
x
Reference in New Issue
Block a user