How to change CalendarEvent.notes
to optional (nullable)?
class CalendarEvent: Object {
@objc dynamic var date: String = ""
@objc dynamic var notes: String = ""
@objc dynamic var notification: String = ""
}
The Realm database is already populated with data.
I want the notes
property to be changed to nullable in the Realm database.
If I try @objc dynamic var notes: String? = ""
a runtime error appears stating Migration is required due to the following errors: - Property 'CalendarEvent.notes' has been made optional.
According to the Realm documentation, renaming a property during a migration is a way to acheive this. Is it possible to change this property to nullable and without renaming?