Skip to content

Commit

Permalink
(fix)[Migration] fix migration 0.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaisonneuve committed Jul 29, 2024
1 parent 2ec31a7 commit e993f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gws_core/core/db/migrations/migration_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit e993f38

Please sign in to comment.