Merge pull request #3457 from dpalou/MOBILE-4081
MOBILE-4081 core: Fix site already migrated errormain
commit
0788664be6
|
@ -84,7 +84,6 @@ export class CoreSitesProvider {
|
||||||
protected sessionRestored = false;
|
protected sessionRestored = false;
|
||||||
protected currentSite?: CoreSite;
|
protected currentSite?: CoreSite;
|
||||||
protected sites: { [s: string]: CoreSite } = {};
|
protected sites: { [s: string]: CoreSite } = {};
|
||||||
protected sitesMigrated: { [s: string]: boolean } = {};
|
|
||||||
protected siteSchemasMigration: { [siteId: string]: Promise<void> } = {};
|
protected siteSchemasMigration: { [siteId: string]: Promise<void> } = {};
|
||||||
protected siteSchemas: { [name: string]: CoreRegisteredSiteSchema } = {};
|
protected siteSchemas: { [name: string]: CoreRegisteredSiteSchema } = {};
|
||||||
protected pluginsSiteSchemas: { [name: string]: CoreRegisteredSiteSchema } = {};
|
protected pluginsSiteSchemas: { [name: string]: CoreRegisteredSiteSchema } = {};
|
||||||
|
@ -1721,12 +1720,6 @@ export class CoreSitesProvider {
|
||||||
return this.siteSchemasMigration[siteId];
|
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}`);
|
this.logger.debug(`Migrating all schemas of ${siteId}`);
|
||||||
|
|
||||||
// First create tables not registerd with name/version.
|
// First create tables not registerd with name/version.
|
||||||
|
|
Loading…
Reference in New Issue