-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrations for tutanota-v79.ts and sys-v116.ts
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { OfflineMigration } from "../OfflineStorageMigrator.js" | ||
import { OfflineStorage } from "../OfflineStorage.js" | ||
export const sys116: OfflineMigration = { | ||
app: "sys", | ||
version: 116, | ||
async migrate(storage: OfflineStorage) { | ||
// only Downgraded customer was added so nothing to migrate | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { OfflineMigration } from "../OfflineStorageMigrator.js" | ||
import { OfflineStorage } from "../OfflineStorage.js" | ||
import { addValue, migrateAllElements } from "../StandardMigrations" | ||
import { MailBoxTypeRef } from "../../../entities/tutanota/TypeRefs" | ||
import { GENERATED_MIN_ID } from "../../../common/utils/EntityUtils" | ||
|
||
export const tutanota79: OfflineMigration = { | ||
app: "tutanota", | ||
version: 79, | ||
async migrate(storage: OfflineStorage) { | ||
await migrateAllElements(MailBoxTypeRef, storage, [addValue("importedAttachments", GENERATED_MIN_ID), addValue("mailImportStates", GENERATED_MIN_ID)]) | ||
}, | ||
} |