From 4a25b19508012623d49c76f90b9b77afde2482a4 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 4 Oct 2020 14:04:45 +0200 Subject: [PATCH] fix: Try with select 1 --- lib/utils/famedlysdk_store.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils/famedlysdk_store.dart b/lib/utils/famedlysdk_store.dart index 31ce349..87adbcd 100644 --- a/lib/utils/famedlysdk_store.dart +++ b/lib/utils/famedlysdk_store.dart @@ -31,6 +31,8 @@ Future getDatabase(Client client) async { filename: 'moor.sqlite', password: password, ); + // Check if database is open: + debugPrint((await _db.customSelect('SELECT 1').get()).toString()); if (needMigration) { debugPrint('[Moor] Start migration'); await migrate(client.clientName, _db, store);