Thank you for the reply, I'll take a look at the link you posted, but wanted to clarify my questions.
I currently have four models: Item, Thing, Element, Piece
creating the model container like so:
var sharedModelContainer: ModelContainer = {
let schema = Schema([
Item.self,
Thing.self,
Element.self,
Piece.self
])
let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false)
do {
return try ModelContainer(for: schema, configurations: [modelConfiguration])
} catch {
fatalError("Could not create ModelContainer: \(error)")
}
}()
Do all @Model classes need to be converted?
I plan on updating all models, but I was really asking what is necessary. And it ties into the following question
Is there one VersionedSchema for the entire app that handles all models or one VersionedSchema per model?
So I'm asking, do I create MyAppSchemaV1 and define the models there, or do I need to create ItemSchemaV1, ThingSchemaV1, ElementSchemaV1, and PieceSchemaV1 - then I would add ItemSchemaV2?
Finally you state
The schema used to create a model container should be the current version schema, in this case, version 2 schema.
This leads me to believe I should have a single schema for the entire app. Am I understanding things correctly so far?