fix: More debug logs

This commit is contained in:
Christian Pauly 2020-10-04 12:32:29 +02:00
commit 354c5cde82
2 changed files with 6 additions and 1 deletions

View file

@ -31,7 +31,9 @@ Future<Database> getDatabase(Client client) async {
filename: 'moor.sqlite',
password: password,
);
debugPrint('[Moor] Database has been created');
if (needMigration) {
debugPrint('[Moor] Start migration');
await migrate(client.clientName, _db, store);
await store.setItem('database-password', password);
}