Skip to content

Commit

Permalink
issue to upgrade from old version #166
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme Lebel committed Oct 29, 2014
1 parent 68e1d8b commit 4c4cb86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Just build it, it should work (but let me know if you have an errors or warnings

- Autoreconnect the ssh tunnel when it is down
- Changing the shortcut from ⌘→ and ⌘← to ⌥⌘→ and ⌥⌘← to get next and previous results in the find tab
- Issue to upgrade from old version (2.3.2) [issue #166](https://github.com/jeromelebel/MongoHub-Mac/issues/166)

**Beta**

Expand Down
4 changes: 1 addition & 3 deletions Sources/MHApplicationDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ - (NSPersistentStoreCoordinator *) persistentStoreCoordinator

_persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel: mom];
NSArray* modelNames = @[
@"MongoHub_DataModel1.0",
@"MongoHub_DataModel2.0",
@"MongoHub_DataModel",
@"MongoHub_DataModel3.0",
@"MongoHub_DataModel4",
@"MongoHub_DataModel5",
Expand All @@ -210,7 +209,6 @@ - (NSPersistentStoreCoordinator *) persistentStoreCoordinator
orderedModelNames:modelNames
error:&error]) {
NSLog(@"Error migrating to latest model: %@\n %@", error, [error userInfo]);
abort();
}
if (![_persistentStoreCoordinator addPersistentStoreWithType:YOUR_STORE_TYPE
configuration:nil
Expand Down

0 comments on commit 4c4cb86

Please sign in to comment.