From 968dc2824d365f1108bb72d5a28d0b2d5b56868b Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Wed, 11 Dec 2024 16:16:04 +0530 Subject: [PATCH 1/2] Fixed: ZIM files are not showing on "Library" screen when updating the app to from `3.11.1` to `3.12.0`. --- core/objectbox-models/default.json | 15 +++++++-------- core/objectbox-models/default.json.bak | 12 ++++++++---- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/core/objectbox-models/default.json b/core/objectbox-models/default.json index 06bf72f38..8990ab6e3 100644 --- a/core/objectbox-models/default.json +++ b/core/objectbox-models/default.json @@ -14,6 +14,11 @@ "type": 6, "flags": 1 }, + { + "id": "2:2644395282642821815", + "name": "file", + "type": 9 + }, { "id": "4:3145196313443812205", "name": "bookId", @@ -88,11 +93,6 @@ "id": "18:1711250046418389186", "name": "zimReaderSource", "type": 9 - }, - { - "id": "19:8429535071703004578", - "name": "file", - "type": 9 } ], "relations": [] @@ -398,9 +398,8 @@ 5555873126720275555, 2724607601244650879, 5485468735259326535, - 4272820830206771469, - 2644395282642821815 + 4272820830206771469 ], "retiredRelationUids": [], "version": 1 -} \ No newline at end of file +} diff --git a/core/objectbox-models/default.json.bak b/core/objectbox-models/default.json.bak index 28ded888e..8990ab6e3 100644 --- a/core/objectbox-models/default.json.bak +++ b/core/objectbox-models/default.json.bak @@ -5,7 +5,7 @@ "entities": [ { "id": "3:5536749840871435068", - "lastPropertyId": "18:1711250046418389186", + "lastPropertyId": "19:8429535071703004578", "name": "BookOnDiskEntity", "properties": [ { @@ -14,6 +14,11 @@ "type": 6, "flags": 1 }, + { + "id": "2:2644395282642821815", + "name": "file", + "type": 9 + }, { "id": "4:3145196313443812205", "name": "bookId", @@ -393,9 +398,8 @@ 5555873126720275555, 2724607601244650879, 5485468735259326535, - 4272820830206771469, - 2644395282642821815 + 4272820830206771469 ], "retiredRelationUids": [], "version": 1 -} \ No newline at end of file +} From 5b868ddc73350c22aef77b1e508e75271d7962eb Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Fri, 13 Dec 2024 11:30:56 +0530 Subject: [PATCH 2/2] Added a comment in the JSON file to clarify that entity and property IDs should remain unchanged unless the corresponding entity is modified. --- core/objectbox-models/default.json | 1 + core/objectbox-models/default.json.bak | 1 + 2 files changed, 2 insertions(+) diff --git a/core/objectbox-models/default.json b/core/objectbox-models/default.json index 8990ab6e3..ceb473092 100644 --- a/core/objectbox-models/default.json +++ b/core/objectbox-models/default.json @@ -2,6 +2,7 @@ "_note1": "KEEP THIS FILE! Check it into a version control system (VCS) like git.", "_note2": "ObjectBox manages crucial IDs for your object model. See docs for details.", "_note3": "If you have VCS merge conflicts, you must resolve them according to ObjectBox docs.", + "_note4": "The IDs of the entities and properties should not be changed unless there is a change in the corresponding entity.", "entities": [ { "id": "3:5536749840871435068", diff --git a/core/objectbox-models/default.json.bak b/core/objectbox-models/default.json.bak index 8990ab6e3..ceb473092 100644 --- a/core/objectbox-models/default.json.bak +++ b/core/objectbox-models/default.json.bak @@ -2,6 +2,7 @@ "_note1": "KEEP THIS FILE! Check it into a version control system (VCS) like git.", "_note2": "ObjectBox manages crucial IDs for your object model. See docs for details.", "_note3": "If you have VCS merge conflicts, you must resolve them according to ObjectBox docs.", + "_note4": "The IDs of the entities and properties should not be changed unless there is a change in the corresponding entity.", "entities": [ { "id": "3:5536749840871435068",