From e993f381bfcb86c07940c81423e4e9f24cdb756f Mon Sep 17 00:00:00 2001 From: Benjamin Maisonneuve Date: Mon, 29 Jul 2024 14:56:20 +0000 Subject: [PATCH] (fix)[Migration] fix migration 0.8.4 --- src/gws_core/core/db/migrations/migration_0.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gws_core/core/db/migrations/migration_0.py b/src/gws_core/core/db/migrations/migration_0.py index 92caae34..9710c363 100644 --- a/src/gws_core/core/db/migrations/migration_0.py +++ b/src/gws_core/core/db/migrations/migration_0.py @@ -1024,5 +1024,5 @@ def _migrate_rich_text_image( new_path = os.path.join(new_dir, figure['filename']) old_path = os.path.join(RichTextFileService._get_dir_path(), figure['filename']) - if not FileHelper.exists_on_os(new_path): + if FileHelper.exists_on_os(old_path) and not FileHelper.exists_on_os(new_path): FileHelper.copy_file(old_path, new_path)