isar / isar/hive

How to delete database when run test?

Open
#721 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

**Question**
I run the test and save an object in a box, then i changed HiveField index and mess it up a little bit.
When i run again i keep getting `...is not a subtype of...`

How can i delete all database. I tried `flutter clean` `flutter pub cache repair` `invalidate cache and restart` `flutter pub upgrade` but no use

**Flutter Doctor**
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19042.1052], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.2)
[√] Android Studio
[√] IntelliJ IDEA Ultimate Edition (version 2021.1)
[√] Connected device (3 available)

Contributor guide

No contributing guide indexed for this repository

Research direction

The report mentions a HiveField index change and Flutter cleanup commands, but names no files or tests. Start by identifying where the test database is stored and how Hive schema changes are handled; done means rerunning the test without the subtype error after clearing or migrating the persisted data.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.