Disable remove just in case

This commit is contained in:
PartyDonut 2025-07-27 13:14:22 +02:00
parent 2cb898a161
commit 18d7f1b163

View file

@ -71,12 +71,12 @@ Future<void> isarMigration(Ref ref, AppDatabase db, String savePath) async {
);
});
isar.close(deleteFromDisk: true);
isar.close();
//Delete database file
await Future.delayed(const Duration(seconds: 1));
if (await isarPath.exists()) {
log('Deleting old Fladder base folder: ${isarPath.path}');
await isarPath.delete(recursive: true);
}
//Delete isar database after a few versions?
// await Future.delayed(const Duration(seconds: 1));
// if (await isarPath.exists()) {
// log('Deleting old Fladder base folder: ${isarPath.path}');
// await isarPath.delete(recursive: true);
// }
}