mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
749 B
C
26 lines
749 B
C
8 years ago
|
//
|
||
7 years ago
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
8 years ago
|
//
|
||
9 years ago
|
|
||
4 years ago
|
#import <SignalUtilitiesKit/TSYapDatabaseObject.h>
|
||
9 years ago
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
7 years ago
|
typedef void (^OWSDatabaseMigrationCompletion)(void);
|
||
|
|
||
7 years ago
|
@class OWSPrimaryStorage;
|
||
9 years ago
|
|
||
|
@interface OWSDatabaseMigration : TSYapDatabaseObject
|
||
|
|
||
7 years ago
|
@property (nonatomic, readonly) OWSPrimaryStorage *primaryStorage;
|
||
9 years ago
|
|
||
8 years ago
|
// Prefer nonblocking (async) migrations by overriding `runUpWithTransaction:` in a subclass.
|
||
|
// Blocking migrations running too long will crash the app, effectively bricking install
|
||
|
// because the user will never get past it.
|
||
|
// If you must write a launch-blocking migration, override runUp.
|
||
7 years ago
|
- (void)runUpWithCompletion:(OWSDatabaseMigrationCompletion)completion;
|
||
9 years ago
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|