Вы можете перенести базу данных своей области, проверив версию схемы, которую хотите обновить. и передача конфигурации в конфигурацию по умолчанию для области.
blockquote>Добавьте эти строки кода в метод didFinishLaunchingWithOptions вашего appDelegate. Сразу после настройки вашей области и внесите в нее необходимые изменения.
let config = Realm.Configuration( // Set the new schema version. This must be greater than the previously used // version (if you've never set a schema version before, the version is 0). schemaVersion: 1, // Set the block which will be called automatically when opening a Realm with // a schema version lower than the one set above migrationBlock: { migration, oldSchemaVersion in if oldSchemaVersion < 1 { // Add your class name where you have added new property 'tranport'. migration.enumerate(Photo.className()) { oldObject, newObject in newObject?["tranport"] = "Your value" } } } ) Realm.Configuration.defaultConfiguration = config