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
709 B
Objective-C
26 lines
709 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <SignalServiceKit/TSYapDatabaseObject.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class TSStorageManager;
|
|
|
|
@interface OWSDatabaseMigration : TSYapDatabaseObject
|
|
|
|
- (instancetype)initWithStorageManager:(TSStorageManager *)storageManager;
|
|
|
|
@property (nonatomic, readonly) TSStorageManager *storageManager;
|
|
|
|
// 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.
|
|
- (void)runUp;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|