diff --git a/AutoCat.xcodeproj/project.pbxproj b/AutoCat.xcodeproj/project.pbxproj index c3ae397..f8bb9c4 100644 --- a/AutoCat.xcodeproj/project.pbxproj +++ b/AutoCat.xcodeproj/project.pbxproj @@ -1158,7 +1158,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 123; + CURRENT_PROJECT_VERSION = 124; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = AutoCat; @@ -1186,7 +1186,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 123; + CURRENT_PROJECT_VERSION = 124; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = AutoCat; diff --git a/AutoCat/AppDelegate.swift b/AutoCat/AppDelegate.swift index cdfe9ab..9d31720 100644 --- a/AutoCat/AppDelegate.swift +++ b/AutoCat/AppDelegate.swift @@ -26,7 +26,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { let config = Realm.Configuration( - schemaVersion: 41, + schemaVersion: 42, migrationBlock: { migration, oldSchemaVersion in if oldSchemaVersion <= 31 { migration.enumerateObjects(ofType: "Vehicle") { old, new in diff --git a/AutoCatCore/Models/Osago.swift b/AutoCatCore/Models/Osago.swift index 7f8a89b..2591153 100644 --- a/AutoCatCore/Models/Osago.swift +++ b/AutoCatCore/Models/Osago.swift @@ -7,7 +7,7 @@ public class Osago: Object, Decodable, Cloneable { @Persisted public var vin: String? @Persisted public var plateNumber: String? @Persisted public var name: String = "" - @Persisted public var status: String = "" + @Persisted public var status: String? @Persisted public var restrictions: String = "" @Persisted public var insurant: String? @Persisted public var owner: String?