diff --git a/lib/db/connection/native.dart b/lib/db/connection/native.dart index 8c0f416e..d8819f25 100644 --- a/lib/db/connection/native.dart +++ b/lib/db/connection/native.dart @@ -36,7 +36,8 @@ QueryExecutor openConnection() { final dbFile = await getDBPath(kDebugMode); if (kDebugMode) { - print('DEBUG: database path: "${dbFile.path}"'); + print('DEBUG: database path: "${dbFile.path}"'); + print('DEBUG: database exists: ${dbFile.existsSync()}'); } return NativeDatabase.createInBackground( dbFile, @@ -58,6 +59,8 @@ Future _cleanOldDBs() async { } Future _moveToContainer(bool devmode) async { + if (!UniversalPlatform.isIOS) return; + final source = await getDBPath(devmode, container: false); if (source.existsSync()) { final dest = await getDBPath(devmode);