Increment and store message migration attempts

This commit is contained in:
Fedor Indutny 2022-06-20 14:18:23 -07:00 committed by GitHub
parent d547ef362e
commit 63679f5af6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 67 additions and 20 deletions

3
ts/model-types.d.ts vendored
View file

@ -205,6 +205,9 @@ export type MessageAttributesType = {
// background, when we were still in IndexedDB, before attachments had gone to disk
// We set this so that the idle message upgrade process doesn't pick this message up
schemaVersion?: number;
// migrateMessageData will increment this field on every failure and give up
// when the value is too high.
schemaMigrationAttempts?: number;
// This should always be set for new messages, but older messages may not have them. We
// may not have these for outbound messages, either, as we have not needed them.
serverGuid?: string;