mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
chore: remove image nodes that point to nothing
- remove their relationships to posts/users as well
This commit is contained in:
parent
cedd0ac9e8
commit
ff348fdd5c
@ -30,7 +30,7 @@ export async function up(next) {
|
||||
`
|
||||
MATCH(image:Image)
|
||||
WHERE image.url IN $danglingUrls
|
||||
REMOVE image.url
|
||||
DETACH DELETE image
|
||||
`,
|
||||
{ danglingUrls },
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user