Migration for existing configs

This commit is contained in:
Manav Rathi 2024-04-11 15:17:50 +05:30
parent f5bf776848
commit 33e3265db6
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

@ -45,16 +45,13 @@ export declare type Landmark = Point;
export declare type ImageType = "Original" | "Preview";
export declare type FaceDetectionMethod = "FaceApiSSD" | "YoloFace";
export declare type FaceDetectionMethod = "YoloFace";
export declare type FaceCropMethod = "ArcFace";
export declare type FaceAlignmentMethod =
| "ArcFace"
| "FaceApiDlib"
| "RotatedFaceApiDlib";
export declare type FaceAlignmentMethod = "ArcFace";
export declare type FaceEmbeddingMethod = "MobileFaceNet" | "FaceApiDlib";
export declare type FaceEmbeddingMethod = "MobileFaceNet";
export declare type BlurDetectionMethod = "Laplacian";

View file

@ -124,6 +124,9 @@ class MLIDbStorage {
.add(DEFAULT_ML_SEARCH_CONFIG, ML_SEARCH_CONFIG_NAME);
}
if (oldVersion < 4) {
db.deleteObjectStore("configs");
db.createObjectStore("configs");
db.deleteObjectStore("things");
}