MOBILE-3833 core: Fix current site table migration

main
Noel De Martin 2022-02-16 14:26:04 +01:00
parent b98e7d4d0a
commit f8cba471fd
1 changed files with 2 additions and 0 deletions

View File

@ -1792,6 +1792,8 @@ export class CoreSitesProvider {
await CoreConfig.set('current_site_id', siteId);
await CoreApp.deleteTableSchema('current_site');
await db.dropTable('current_site');
} catch {
// There was no current site, silence the error.
} finally {
await CoreConfig.set('current_site_migrated', 1);
}