isar / isar/hive

I screwed up, is there anything I can do?

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

Description

Hi,

I shipped an update of my app with changes to my Hive objects that are not compatible with my users old local data (e.G. changed data type, changed data structure etc..). Some users havent updated in months and Im not sure what old data they have. Now my users getting app crashes because their old data conflicts with the new data objects of the app update. I have to tell affected users to delete their app cache/ app data or the app is bricked, which is an awful experience.

Is there a general approach how can make sure the old data is not used anymore, like increasing data base version or a onMigrate: function? I could not find anything like that in the docs.

Edit:

To make myself more clear Im getting

`HiveError: Box not found. Did you forget to call Hive.openBox()`

in crashlytics from users on release side but I cannot reproduce the errors.

Thanks a lot!

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by reviewing the existing Hive documentation for schema changes, box opening, and upgrade handling; done means the supported approach for incompatible local data and the reported “Box not found” failure is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
databases, documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.