isar / hive

Lightweight and blazing fast key-value database written in pure Dart.
Apache License 2.0
4.1k stars 407 forks source link

Exception when changing the typeId #949

Open hm122 opened 2 years ago

hm122 commented 2 years ago

Steps to Reproduce Change the typeId of an existing adapter from 1 to 2

Exception

Unhandled Exception: HiveError: Cannot read, unknown typeId: 43. Did you forget to register an adapter?

Never used the typeId: 43. When I remove the app and reinstall, everything works as it should. I made a few breaking changes in the model that is way I would like to change the typeId. Anyone facing the same issue? How is the default procedure when a model has breaking changes?

Version

silverhairs commented 2 years ago

check the conversation on #399