From 4c4cb8648709173ae856b58d55e909bfed59a345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebel?= Date: Wed, 29 Oct 2014 21:13:31 +0100 Subject: [PATCH] issue to upgrade from old version https://github.com/jeromelebel/MongoHub-Mac/issues/166 --- README.markdown | 1 + Sources/MHApplicationDelegate.m | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index aea81943..a0465707 100644 --- a/README.markdown +++ b/README.markdown @@ -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** diff --git a/Sources/MHApplicationDelegate.m b/Sources/MHApplicationDelegate.m index 8b199f68..2248a223 100644 --- a/Sources/MHApplicationDelegate.m +++ b/Sources/MHApplicationDelegate.m @@ -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", @@ -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