<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "swift: 5.9.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftData",
  "identifier" : "/documentation/SwiftData/SchemaMigrationPlan",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "SwiftData"
    ],
    "preciseIdentifier" : "s:9SwiftData19SchemaMigrationPlanP"
  },
  "title" : "SchemaMigrationPlan"
}
-->

# SchemaMigrationPlan

An interface for describing the evolution of a schema and how to migrate between specific versions.

```
protocol SchemaMigrationPlan : SendableMetatype
```

## Topics

### Managing versioned schemas

[`schemas`](/documentation/SwiftData/SchemaMigrationPlan/schemas)

[`VersionedSchema`](/documentation/SwiftData/VersionedSchema)

An interface for describing a specific version of a schema, including the models it contains.

### Managing migration stages

[`stages`](/documentation/SwiftData/SchemaMigrationPlan/stages)

[`MigrationStage`](/documentation/SwiftData/MigrationStage)

Describes a migration between two versions of the same schema.

## Relationships

### Inherits From

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)