Fix migrations not upgrading the existing data consecutively.
This commit is contained in:
		
							parent
							
								
									d20a98c0a4
								
							
						
					
					
						commit
						a67d78c099
					
				| 
						 | 
				
			
			@ -3,7 +3,7 @@
 | 
			
		|||
  "manifest_version": 2,
 | 
			
		||||
  "name": "Queue",
 | 
			
		||||
  "description": "A WebExtension for queueing links.",
 | 
			
		||||
  "version": "0.1.7",
 | 
			
		||||
  "version": "0.1.8",
 | 
			
		||||
  "permissions": [
 | 
			
		||||
    "contextMenus",
 | 
			
		||||
    "storage",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,7 +23,7 @@ export function migrate(
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    log(`Running migration ${migration.date.toISOString()}`);
 | 
			
		||||
    next = migration.upgrade(previous);
 | 
			
		||||
    next = migration.upgrade(next);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return next;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue