We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f4f7b4 commit f4f3aa3Copy full SHA for f4f3aa3
src/TestUtils.js
@@ -1,5 +1,5 @@
1
import AppCache from './cache';
2
-
+import SchemaCache from './Adapters/Cache/SchemaCache';
3
/**
4
* Destroys all data in the database
5
* @param {boolean} fast set to true if it's ok to just drop objects and not indexes.
@@ -13,8 +13,10 @@ export function destroyAllDataPermanently(fast) {
13
const app = AppCache.get(appId);
14
if (app.databaseController) {
15
return app.databaseController.deleteEverything(fast);
16
+ } else if (app.databaseAdapter) {
17
+ SchemaCache.clear();
18
+ return app.databaseAdapter.deleteAllClasses(fast);
19
} else {
- console.log('Could not delete: ', app.databaseAdapter);
20
return Promise.resolve();
21
}
22
})
0 commit comments