openchs-models 1.32.52 → 1.32.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Schema.js +6 -4
- package/package.json +1 -1
package/dist/Schema.js
CHANGED
|
@@ -283,7 +283,7 @@ function createRealmConfig() {
|
|
|
283
283
|
return doCompact;
|
|
284
284
|
},
|
|
285
285
|
//order is important, should be arranged according to the dependency
|
|
286
|
-
schemaVersion:
|
|
286
|
+
schemaVersion: 203,
|
|
287
287
|
onMigration: function (oldDB, newDB) {
|
|
288
288
|
console.log("[AvniModels.Schema]", `Running migration with old schema version: ${oldDB.schemaVersion} and new schema version: ${newDB.schemaVersion}`);
|
|
289
289
|
if (oldDB.schemaVersion === VersionWithEmbeddedMigrationProblem) throw new Error(`Update from schema version ${VersionWithEmbeddedMigrationProblem} is not allowed. Please uninstall and install app.`);
|
|
@@ -987,9 +987,11 @@ function createRealmConfig() {
|
|
|
987
987
|
});
|
|
988
988
|
}
|
|
989
989
|
|
|
990
|
-
if (oldDB.schemaVersion <
|
|
991
|
-
_lodash.default.forEach(newDB.objects(
|
|
992
|
-
|
|
990
|
+
if (oldDB.schemaVersion < 203) {
|
|
991
|
+
_lodash.default.forEach(newDB.objects(_EntitySyncStatus.default.schema.name), ess => {
|
|
992
|
+
if (ess.entityName === 'SubjectType') {
|
|
993
|
+
ess.loadedSince = _EntitySyncStatus.default.REALLY_OLD_DATE;
|
|
994
|
+
}
|
|
993
995
|
});
|
|
994
996
|
}
|
|
995
997
|
}
|