openchs-models 1.31.39 → 1.31.41
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 +5 -0
- package/package.json +1 -1
package/dist/Schema.js
CHANGED
|
@@ -375,6 +375,11 @@ function migrateAllEmbeddedForTxnData(oldDB, newDB) {
|
|
|
375
375
|
|
|
376
376
|
function createRealmConfig() {
|
|
377
377
|
return {
|
|
378
|
+
shouldCompact: function (totalBytes, usedBytes) {
|
|
379
|
+
const doCompact = totalBytes / usedBytes > 1.1;
|
|
380
|
+
console.log("Should compact", totalBytes, usedBytes, doCompact);
|
|
381
|
+
return doCompact;
|
|
382
|
+
},
|
|
378
383
|
//order is important, should be arranged according to the dependency
|
|
379
384
|
schemaVersion: 185,
|
|
380
385
|
onMigration: function (oldDB, newDB) {
|