Bind migrations to build numbers
This commit is contained in:
parent
082ffa3cb1
commit
12e0a55f7a
|
@ -46,9 +46,12 @@ extension ConnectionService {
|
|||
}
|
||||
|
||||
// replace migration logic here
|
||||
try migrateToWrappedSessionConfiguration(&json)
|
||||
try migrateToBaseConfiguration(&json)
|
||||
try migrateToBuildNumber(&json)
|
||||
let build = json["build"] as? Int ?? 0
|
||||
if build <= 1084 {
|
||||
try migrateToWrappedSessionConfiguration(&json)
|
||||
try migrateToBaseConfiguration(&json)
|
||||
try migrateToBuildNumber(&json)
|
||||
}
|
||||
|
||||
return try JSONSerialization.data(withJSONObject: json, options: [])
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue