Skip to content

Commit

Permalink
TutanotaModel v79 offline migration
Browse files Browse the repository at this point in the history
  • Loading branch information
wrdhub committed Dec 12, 2024
1 parent aca5ef7 commit 37de6b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/api/worker/offline/OfflineStorageMigrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import { tutanota77 } from "./migrations/tutanota-v77.js"
import { sys114 } from "./migrations/sys-v114.js"
import { offline2 } from "./migrations/offline2.js"
import { sys115 } from "./migrations/sys-v115.js"
import { tutanota79 } from "./migrations/tutanota-v79.js"

export interface OfflineMigration {
readonly app: VersionMetadataBaseKey
Expand Down Expand Up @@ -82,6 +83,7 @@ export const OFFLINE_STORAGE_MIGRATIONS: ReadonlyArray<OfflineMigration> = [
sys114,
offline2,
sys115,
tutanota79,
]

const CURRENT_OFFLINE_VERSION = 2
Expand Down
10 changes: 10 additions & 0 deletions src/common/api/worker/offline/migrations/tutanota-v79.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { OfflineMigration } from "../OfflineStorageMigrator.js"
import { OfflineStorage } from "../OfflineStorage.js"
import { addValue, deleteInstancesOfType, migrateAllListElements, removeValue } from "../StandardMigrations"
import { MailFolderTypeRef, TutanotaPropertiesTypeRef } from "../../../entities/tutanota/TypeRefs"

export const tutanota79: OfflineMigration = {
app: "tutanota",
version: 79,
async migrate(storage: OfflineStorage) {},
}

0 comments on commit 37de6b1

Please sign in to comment.