Fixing error when osago status in nil
This commit is contained in:
parent
c330557604
commit
ed258ed8f3
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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?
|
||||
|
||||
Loading…
Reference in New Issue
Block a user