TypeId $typeId not allowed. Why?
- Dominant language
- Dart
- Stars
- 4.4k
- Forks
- 449
- PR merge metrics
- No merged PRs in 30d
Description
**Question**
Im trying to solve data migrations problem. Instead old model with typeId: 1, im creating new model with type: 2.
So im going to use numbers of higher order. Why there is a limit??
**Code sample**
```
if (typeId < 0 || typeId > 223) {
throw HiveError('TypeId $typeId not allowed.');
}
typeId = typeId + reservedTypeIds;
```
**Version**
- Platform: iOS
- Flutter version: 3.1.0-0.0.pre.1116
- Hive version: 2.1.0
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the TypeId validation shown in the issue and reviewing Hive 2.1.0's type registration and migration documentation. Determine why the allowed range exists and whether the supported migration path is documented; done means the limitation and migration guidance are clear to users.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- databases
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100