I have core data model and sqlite databse with data. Entity
Bla:
int:f;
text:baar
and model class
@interface Bla {
}
@property(retain) NSNumber *f;
@property(retain) NSString *baar;
@end;
@implementation Bla
@dynamic shared;
@dynamic isEBird;
@end;
I add field BOOL:isGood to entity. I must do something to migrate to new version excluding set current model version to last version?
@interface Bla {
}
@property(retain) NSNumber *f;
@property(retain) NSString *baar;
@property(retain) NSNumber *isGood;
@end;
@implementation Bla
@dynamic f;
@dynamic baar;
@dynamic isGood;
@end;
I have error at app launch wher app migrate to new version 1
4 CoreData 0x000113e0 -[NSSQLiteConnection execute] + 696
15 CoreData 0x000994be -[NSSQLConnection prepareAndExecuteSQLStatement:] + 26
16 CoreData 0x000be14c -[_NSSQLiteStoreMigrator performMigration:] + 244
17 CoreData 0x000b6c60 -[NSSQLiteInPlaceMigrationManager migrateStoreFromURL:type:options:withMappingModel:toDestinationURL:destinationType:destinationOptions:error:] + 1040
18 CoreData 0x000aceb0 -[NSStoreMigrationPolicy(InternalMethods) migrateStoreAtURL:toURL:storeType:options:withManager:error:] + 92
19 CoreData 0x000ad6f0 -[NSStoreMigrationPolicy migrateStoreAtURL:withManager:metadata:options:error:] + 72
20 CoreData 0x000ac9ee -[NSStoreMigrationPolicy(InternalMethods) _gatherDataAndPerformMigration:] + 880
21 CoreData 0x0000965c -[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:] + 1328