Merge branch 'charlesmchen/crashOnLaunch' into hotfix/2.13.3.0

pull/1/head
Matthew Chen 8 years ago
commit 32beec6115

@ -31,7 +31,7 @@ NS_ASSUME_NONNULL_BEGIN
[[OWS100RemoveTSRecipientsMigration alloc] initWithStorageManager:self.storageManager], [[OWS100RemoveTSRecipientsMigration alloc] initWithStorageManager:self.storageManager],
[[OWS102MoveLoggingPreferenceToUserDefaults alloc] initWithStorageManager:self.storageManager], [[OWS102MoveLoggingPreferenceToUserDefaults alloc] initWithStorageManager:self.storageManager],
[[OWS103EnableVideoCalling alloc] initWithStorageManager:self.storageManager], [[OWS103EnableVideoCalling alloc] initWithStorageManager:self.storageManager],
[[OWS104CreateRecipientIdentities alloc] initWithStorageManager:self.storageManager], // OWS104CreateRecipientIdentities is run separately. See runSafeBlockingMigrations.
[[OWS105AttachmentFilePaths alloc] initWithStorageManager:self.storageManager] [[OWS105AttachmentFilePaths alloc] initWithStorageManager:self.storageManager]
]; ];
} }
@ -46,6 +46,11 @@ NS_ASSUME_NONNULL_BEGIN
- (void)runSafeBlockingMigrations - (void)runSafeBlockingMigrations
{ {
// This should only include migrations which:
//
// a) Do read/write database transactions and therefore would block on the async database
// view registration.
// b) Will not affect any of the data used by the async database views.
[self runMigrations:@[ [self runMigrations:@[
[[OWS104CreateRecipientIdentities alloc] initWithStorageManager:self.storageManager], [[OWS104CreateRecipientIdentities alloc] initWithStorageManager:self.storageManager],
]]; ]];

Loading…
Cancel
Save