Fix crash when migrate bookmarks #4563

pull/4564/head
Krypto Pank 3 years ago
parent a9bac3c34b
commit dd088f35dd
  1. 4
      AlphaWallet/Core/Initializers/DatabaseMigration.swift

@ -155,10 +155,10 @@ extension DatabaseMigration {
try? realm.write {
for each in oldPerWalletDatabase.objects(History.self) {
realm.create(History.self, value: each)
realm.create(History.self, value: each, update: .all)
}
for each in oldPerWalletDatabase.objects(Bookmark.self) {
realm.create(Bookmark.self, value: each)
realm.create(Bookmark.self, value: each, update: .all)
}
}
}

Loading…
Cancel
Save