Document MessageDataMigrator module design
		
	This commit is contained in:
		
					parent
					
						
							
								3c57dbfb56
							
						
					
				
			
			
				commit
				
					
						3e2d575506
					
				
			
		
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -1,5 +1,12 @@ | ||||||
| /* eslint-env browser */ | /* 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 doesn’t 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 isFunction = require('lodash/isFunction'); | ||||||
| const isNumber = require('lodash/isNumber'); | const isNumber = require('lodash/isNumber'); | ||||||
| const isObject = require('lodash/isObject'); | const isObject = require('lodash/isObject'); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Daniel Gasienica
				Daniel Gasienica