Introduction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Databases are dynamic entities. Over time, data inside them are added, removed, and modified. There’s a fair chance that, in addition to the data, the structure, or schema, of your database tables will change over time. You might want to add more or remove properties to a model, or define new models that have relationships to existing models.

SwiftData luckily has mechanisms to help you migrate your schemas from one version to another. In this lesson you will:

  • Discover when you need to worry about migrating your model schema
  • Learn about how to annotate your schema models for migration while using model inheritance
See forum comments
Download course materials from Github
Previous: Conclusion Next: Migrating Your Schema