session-ios/Signal/src/environment/Migrations/OWSDatabaseMigrationRunner.h
Michael Kirk 3e7e67e276 Async migrations framework
* nonblocking by default
* track success of each migration independently

// FREEBIE
2016-09-28 17:09:11 -04:00

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