From b8a0bc34235e44ac14a5f0f0db8074fece5ccb6a Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Mon, 26 Mar 2018 19:12:38 -0400 Subject: [PATCH] Run attachment to disk migration on startup --- js/background.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/background.js b/js/background.js index 18a4c6d4e..dce1de980 100644 --- a/js/background.js +++ b/js/background.js @@ -88,6 +88,9 @@ console.log('Migrate database with attachments'); await Migrations0DatabaseWithAttachmentData.run({ Backbone }); + console.log('Migrate attachments to disk'); + await MessageDataMigrator.processAll({ Backbone, storage, upgradeMessageSchema }); + console.log('Migrate database without attachments'); await Migrations1DatabaseWithoutAttachmentData.run({ Backbone,