Introduction

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