MOBILE-3188 core: Use usual format in new name of wscache table
parent
069c402ba5
commit
838e611dab
|
@ -208,7 +208,7 @@ export class CoreSite {
|
||||||
protected wsProvider: CoreWSProvider;
|
protected wsProvider: CoreWSProvider;
|
||||||
|
|
||||||
// Variables for the database.
|
// Variables for the database.
|
||||||
static WS_CACHE_TABLE = 'ws_cache';
|
static WS_CACHE_TABLE = 'wscache_2';
|
||||||
static CONFIG_TABLE = 'core_site_config';
|
static CONFIG_TABLE = 'core_site_config';
|
||||||
|
|
||||||
// Versions of Moodle releases.
|
// Versions of Moodle releases.
|
||||||
|
|
|
@ -425,7 +425,11 @@ export class CoreSitesProvider {
|
||||||
'SELECT id, data, key, expirationTime, NULL as component, NULL as componentId ' +
|
'SELECT id, data, key, expirationTime, NULL as component, NULL as componentId ' +
|
||||||
'FROM ' + oldTable);
|
'FROM ' + oldTable);
|
||||||
|
|
||||||
return await db.dropTable(oldTable);
|
try {
|
||||||
|
await db.dropTable(oldTable);
|
||||||
|
} catch (error) {
|
||||||
|
// Error deleting old table, ignore.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue