> --
> You received this message because you are subscribed to the Google Groups "CocoaHeads Richmond" group.
> To post to this group, send email to cocoahead...@googlegroups.com.
> To unsubscribe from this group, send email to cocoaheads-rich...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cocoaheads-richmond?hl=en.
>
Jim Kubicek
jkub...@gmail.com
I don't know if I've introduced myself, but I'm Tobias O'Leary.
Moved up to Richmond 3 weeks ago, wife is working at VCU.
I work from home for a consulting company called Lokion Interactive based in Memphis, TN.
Cocoa is a hobby mostly. Most of my projects are in Java, .NET, and PHP.
-Tobias
I have yet to meet the group as well. I look forward to meeting you and everyone else on Thursday night.
-Tony
I'm in.
Zac
- Ryan
--
Ryan Castillo
http://myfakeif.blogspot.com/
-Tobias
-Tobias
On Jul 12, 2011, at 3:57 PM, Ryan Castillo <rmca...@gmail.com> wrote:
-Tobias
On Jul 12, 2011, at 3:57 PM, Ryan Castillo <rmca...@gmail.com> wrote:
- CD uses the version hash to figure out which model version your persistent store corresponds to -- each version has a different hash, auto-computed by default, but manually configurable if you need to explicitly override it
- CD supports versioned xcdatamodels, where each model verison is stored separately which its version info, and one designated as "current"
- To manually migrate between two models, you can define a "Mapping Model" that specifies the data mapping between an old model and a new model (1-2, 2-3, etc).
- Mapping Models can specify custom entity migration policy classes to migrate something more than a simple schema change.
- For a defined set of common schema changes, CD can infer a mapping model for you based on the versioned models, by comparing each model to the previous model. This is the recommended approach for most straightforward migrations.
- When you choose to create a new model version, it will make "Model", "Model 2", "Model 3", files. The name doesn't matter, so my guess is that CD stores the versionHash of the previous model inside the new model, so it can always build the lineage in order (at least .... that's how i'd do it).
- My guess is that you CAN create an optimized mapping model to go from 1 to 4 or 2 to 10, but that most people will do 1-2, 2-3, 3-4, and CD will execute the migrations in order of the versionHash sequence or based on your corresponding mapping models (which explicitly declare the old and new).
ms
ms
-Tobias