Fix Hive typeId conflict between Scripture and TeachingPlan
This commit is contained in:
@@ -3,7 +3,7 @@ import 'package:uuid/uuid.dart';
|
|||||||
|
|
||||||
part 'teaching_plan.g.dart';
|
part 'teaching_plan.g.dart';
|
||||||
|
|
||||||
@HiveType(typeId: 10)
|
@HiveType(typeId: 14)
|
||||||
class TeachingPlan {
|
class TeachingPlan {
|
||||||
@HiveField(0)
|
@HiveField(0)
|
||||||
final String id;
|
final String id;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ part of 'teaching_plan.dart';
|
|||||||
|
|
||||||
class TeachingPlanAdapter extends TypeAdapter<TeachingPlan> {
|
class TeachingPlanAdapter extends TypeAdapter<TeachingPlan> {
|
||||||
@override
|
@override
|
||||||
final int typeId = 10;
|
final int typeId = 14;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
TeachingPlan read(BinaryReader reader) {
|
TeachingPlan read(BinaryReader reader) {
|
||||||
|
|||||||
Reference in New Issue
Block a user