| | 38 | } |
| | 39 | |
| | 40 | + (SapphireCollectionDirectory *)upgradeV1CollectionDirectory:(NSManagedObject *)oldCol toContext:(NSManagedObjectContext *)newMoc |
| | 41 | { |
| | 42 | SapphireCollectionDirectory *ret = [NSEntityDescription insertNewObjectForEntityForName:MY_NAME inManagedObjectContext:newMoc]; |
| | 43 | ret.hidden = [oldCol valueForKey:@"hidden"]; |
| | 44 | ret.isMount = [oldCol valueForKey:@"isMount"]; |
| | 45 | ret.manualCollection = [oldCol valueForKey:@"manualCollection"]; |
| | 46 | ret.skip = [oldCol valueForKey:@"skip"]; |
| | 47 | |
| | 48 | return ret; |