MOBILE-4081 core: Fix site already migrated error
parent
66fc964940
commit
3f7936eacd
|
@ -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<void> } = {};
|
||||
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.
|
||||
|
|
Loading…
Reference in New Issue