MOBILE-3833 core: Fix current site table migration
This commit is contained in:
		
							parent
							
								
									b98e7d4d0a
								
							
						
					
					
						commit
						f8cba471fd
					
				@ -1792,6 +1792,8 @@ export class CoreSitesProvider {
 | 
				
			|||||||
            await CoreConfig.set('current_site_id', siteId);
 | 
					            await CoreConfig.set('current_site_id', siteId);
 | 
				
			||||||
            await CoreApp.deleteTableSchema('current_site');
 | 
					            await CoreApp.deleteTableSchema('current_site');
 | 
				
			||||||
            await db.dropTable('current_site');
 | 
					            await db.dropTable('current_site');
 | 
				
			||||||
 | 
					        } catch {
 | 
				
			||||||
 | 
					            // There was no current site, silence the error.
 | 
				
			||||||
        } finally {
 | 
					        } finally {
 | 
				
			||||||
            await CoreConfig.set('current_site_migrated', 1);
 | 
					            await CoreConfig.set('current_site_migrated', 1);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user