Skip to content

Commit

Permalink
Handle offline migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
vitoreiji committed May 27, 2024
1 parent a24066a commit cabc684
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
2 changes: 0 additions & 2 deletions src/api/worker/offline/OfflineStorageMigrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { tutanota64 } from "./migrations/tutanota-v64.js"
import { tutanota67 } from "./migrations/tutanota-v67.js"
import { sys96 } from "./migrations/sys-v96.js"
import { tutanota69 } from "./migrations/tutanota-v69.js"
import { sys98 } from "./migrations/sys-v98.js"
import { sys97 } from "./migrations/sys-v97.js"
import { tutanota71 } from "./migrations/tutanota-v71.js"
import { sys99 } from "./migrations/sys-v99.js"
Expand Down Expand Up @@ -46,7 +45,6 @@ export const OFFLINE_STORAGE_MIGRATIONS: ReadonlyArray<OfflineMigration> = [
tutanota69,
sys97,
tutanota71,
sys98,
sys99,
sys100,
]
Expand Down
2 changes: 1 addition & 1 deletion src/api/worker/offline/migrations/sys-v100.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export const sys100: OfflineMigration = {
app: "sys",
version: 100,
async migrate(storage: OfflineStorage, sqlCipherFacade: SqlCipherFacade) {
//nothing to do because we only created a new type
// TODO what to we actually need to do here?
},
}
11 changes: 0 additions & 11 deletions src/api/worker/offline/migrations/sys-v98.ts

This file was deleted.

0 comments on commit cabc684

Please sign in to comment.