mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
3e7e67e276
* nonblocking by default * track success of each migration independently // FREEBIE
26 lines
560 B
Objective-C
26 lines
560 B
Objective-C
// Created by Michael Kirk on 9/28/16.
|
|
// Copyright © 2016 Open Whisper Systems. All rights reserved.
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class TSStorageManager;
|
|
|
|
@interface OWSDatabaseMigrationRunner : NSObject
|
|
|
|
- (instancetype)initWithStorageManager:(TSStorageManager *)storageManager;
|
|
|
|
@property (nonatomic, readonly) TSStorageManager *storageManager;
|
|
|
|
/**
|
|
* Run any outstanding version migrations.
|
|
*/
|
|
- (void)runAllOutstanding;
|
|
|
|
/**
|
|
* On new installations, no need to migrate anything.
|
|
*/
|
|
- (void)assumeAllExistingMigrationsRun;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|