wip
This commit is contained in:
@ -2,8 +2,18 @@ import SwiftData
|
||||
|
||||
enum SchemaVersion: Int {
|
||||
case v1
|
||||
case v2
|
||||
case v3
|
||||
|
||||
static var current: SchemaVersion { .v3 }
|
||||
static var current: SchemaVersion { .v1 }
|
||||
|
||||
static var schemas: [VersionedSchema.Type] {
|
||||
[
|
||||
SchemaV1.self
|
||||
]
|
||||
}
|
||||
|
||||
static var models: [any PersistentModel.Type] {
|
||||
switch (Self.current) {
|
||||
case .v1: SchemaV1.models
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user