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.
Files changed (2) hide show
  1. package/dist/Schema.js +6 -4
  2. 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: 202,
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 < 202) {
991
- _lodash.default.forEach(newDB.objects("SubjectType"), stype => {
992
- stype.loadedSince = _EntitySyncStatus.default.REALLY_OLD_DATE.getTime();
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openchs-models",
3
3
  "description": "OpenCHS data model to be used by front end clients",
4
- "version": "1.32.52",
4
+ "version": "1.32.54",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",