fix: Try with select 1

This commit is contained in:
Christian Pauly 2020-10-04 14:04:45 +02:00 committed by Inex Code
parent 3c5020f1bd
commit 4a25b19508
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ Future<Database> 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);