Run attachment to disk migration on startup

This commit is contained in:
Daniel Gasienica 2018-03-26 19:12:38 -04:00
parent 178a3cc262
commit b8a0bc3423

View file

@ -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,