MOBILE-3188 core: Use usual format in new name of wscache table

main
Dani Palou 2020-09-02 09:40:35 +02:00
parent 069c402ba5
commit 838e611dab
2 changed files with 6 additions and 2 deletions

View File

@ -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.

View File

@ -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.
}
} }
} }
}; };