From f3f832557fdf3cabb4cd70e85d3eff8c25a3ac3a Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 21 Jun 2017 10:38:13 -0400 Subject: [PATCH] Respond to CR. // FREEBIE --- Signal/src/environment/Migrations/OWS105AttachmentFilePaths.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Signal/src/environment/Migrations/OWS105AttachmentFilePaths.m b/Signal/src/environment/Migrations/OWS105AttachmentFilePaths.m index 41cc45db9..f096e3ae8 100644 --- a/Signal/src/environment/Migrations/OWS105AttachmentFilePaths.m +++ b/Signal/src/environment/Migrations/OWS105AttachmentFilePaths.m @@ -34,6 +34,9 @@ static NSString *const OWS105AttachmentFilePathsMigrationId = @"105"; DDLogInfo(@"Saving %zd attachment streams.", attachmentStreams.count); + // Persist the new localRelativeFilePath property of TSAttachmentStream. + // For performance, we want to upgrade all existing attachment streams in + // a single transaction. for (TSAttachmentStream *attachmentStream in attachmentStreams) { [attachmentStream saveWithTransaction:transaction]; }