Merge pull request #3124 from NoelDeMartin/MOBILE-3833-fix-sites

MOBILE-3833 core: Fix current site table migration
main
Dani Palou 2022-02-16 15:04:28 +01:00 committed by GitHub
commit 53c4f6b297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1823,6 +1823,8 @@ export class CoreSitesProvider {
await CoreConfig.set(CORE_SITE_CURRENT_SITE_ID_CONFIG, 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);
}