From ff348fdd5ca0f7666e9a139225aab449544ca65e Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Thu, 26 Mar 2020 19:01:09 +0100 Subject: [PATCH] chore: remove image nodes that point to nothing - remove their relationships to posts/users as well --- .../db/migrations/20200326160326-remove_dangling_image_urls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/db/migrations/20200326160326-remove_dangling_image_urls.js b/backend/src/db/migrations/20200326160326-remove_dangling_image_urls.js index aa3d2750c..a77ac360c 100644 --- a/backend/src/db/migrations/20200326160326-remove_dangling_image_urls.js +++ b/backend/src/db/migrations/20200326160326-remove_dangling_image_urls.js @@ -30,7 +30,7 @@ export async function up(next) { ` MATCH(image:Image) WHERE image.url IN $danglingUrls - REMOVE image.url + DETACH DELETE image `, { danglingUrls }, )