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