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
		
	
	
		
			750 B
		
	
	
	
		
			C
		
	
		
		
			
		
	
	
			26 lines
		
	
	
		
			750 B
		
	
	
	
		
			C
		
	
| 
											9 years ago
										 | //
 | ||
| 
											8 years ago
										 | //  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | ||
| 
											9 years ago
										 | //
 | ||
| 
											9 years ago
										 | 
 | ||
| 
											5 years ago
										 | #import <SessionUtilitiesKit/TSYapDatabaseObject.h>
 | ||
| 
											9 years ago
										 | 
 | ||
|  | NS_ASSUME_NONNULL_BEGIN | ||
|  | 
 | ||
| 
											8 years ago
										 | typedef void (^OWSDatabaseMigrationCompletion)(void); | ||
|  | 
 | ||
| 
											8 years ago
										 | @class OWSPrimaryStorage; | ||
| 
											9 years ago
										 | 
 | ||
|  | @interface OWSDatabaseMigration : TSYapDatabaseObject | ||
|  | 
 | ||
| 
											8 years ago
										 | @property (nonatomic, readonly) OWSPrimaryStorage *primaryStorage; | ||
| 
											9 years ago
										 | 
 | ||
| 
											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.
 | ||
| 
											8 years ago
										 | - (void)runUpWithCompletion:(OWSDatabaseMigrationCompletion)completion; | ||
| 
											9 years ago
										 | 
 | ||
|  | @end | ||
|  | 
 | ||
|  | NS_ASSUME_NONNULL_END |