From 3f7936eacdcb2b9e7aa382e44be440e87989864d Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 22 Nov 2022 12:56:46 +0100 Subject: [PATCH] MOBILE-4081 core: Fix site already migrated error --- src/core/services/sites.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/core/services/sites.ts b/src/core/services/sites.ts index dde4cf8f8..87e01c427 100644 --- a/src/core/services/sites.ts +++ b/src/core/services/sites.ts @@ -84,7 +84,6 @@ export class CoreSitesProvider { protected sessionRestored = false; protected currentSite?: CoreSite; protected sites: { [s: string]: CoreSite } = {}; - protected sitesMigrated: { [s: string]: boolean } = {}; protected siteSchemasMigration: { [siteId: string]: Promise } = {}; protected siteSchemas: { [name: string]: CoreRegisteredSiteSchema } = {}; protected pluginsSiteSchemas: { [name: string]: CoreRegisteredSiteSchema } = {}; @@ -1721,12 +1720,6 @@ export class CoreSitesProvider { return this.siteSchemasMigration[siteId]; } - if (this.sitesMigrated[siteId] !== undefined) { - throw new CoreError('Site already migrated.'); - } - - this.sitesMigrated[siteId] = true; - this.logger.debug(`Migrating all schemas of ${siteId}`); // First create tables not registerd with name/version.