Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Make the migration a no-op

Manav Rathi2690b874ee57
diff --git a/web/apps/photos/src/utils/storage/mlIDbStorage.ts b/web/apps/photos/src/utils/storage/mlIDbStorage.ts
index 40e6dad662..766c3ac9a9 100644
--- a/web/apps/photos/src/utils/storage/mlIDbStorage.ts
+++ b/web/apps/photos/src/utils/storage/mlIDbStorage.ts
@@ -144,7 +144,13 @@ class MLIDbStorage {
.objectStore("configs")
.add(DEFAULT_ML_SEARCH_CONFIG, ML_SEARCH_CONFIG_NAME);
}
+ /*
+ This'll go in version 5. Note that version 4 was never released,
+ but it was in main for a while, so we'll just skip it to avoid
+ breaking the upgrade path for people who ran the mainline.
+ */
if (oldVersion < 4) {
+ /*
try {
await tx
.objectStore("configs")
@@ -163,8 +169,8 @@ class MLIDbStorage {
// the shipped implementation should have a more
// deterministic migration.
}
+ */
}
-
log.info(
`ML DB upgraded from version ${oldVersion} to version ${newVersion}`,
);