Document MessageDataMigrator module design

This commit is contained in:
Daniel Gasienica 2018-03-27 12:19:40 -04:00
parent 3c57dbfb56
commit 3e2d575506

View file

@ -1,5 +1,12 @@
/* eslint-env browser */
// Module to upgrade the schema of messages, e.g. migrate attachments to disk.
// `processAll` is meant to be run after the initial database migrations
// (12 17) and purposely doesnt rely on our Backbone IndexedDB adapter to
// prevent subsequent migrations to run (18+) but rather uses direct IndexedDB
// access. This includes avoiding usage of `storage` module which uses Backbone
// under the hood.
const isFunction = require('lodash/isFunction');
const isNumber = require('lodash/isNumber');
const isObject = require('lodash/isObject');