|
|
|
@ -177,8 +177,9 @@ class PokerAnalyticsMigration : RealmMigration { |
|
|
|
if (currentVersion == 8) { |
|
|
|
if (currentVersion == 8) { |
|
|
|
schema.get("HandHistory")?.let { hhSchema -> |
|
|
|
schema.get("HandHistory")?.let { hhSchema -> |
|
|
|
|
|
|
|
|
|
|
|
schema.get("Session")?.let { |
|
|
|
schema.get("Session")?.let { sessionSchema -> |
|
|
|
hhSchema.addRealmObjectField("session", it) |
|
|
|
sessionSchema.removeField("hands") |
|
|
|
|
|
|
|
hhSchema.addRealmObjectField("session", sessionSchema) |
|
|
|
} ?: throw PAIllegalStateException("Session schema not found") |
|
|
|
} ?: throw PAIllegalStateException("Session schema not found") |
|
|
|
hhSchema.addField("smallBlind", Double::class.java) |
|
|
|
hhSchema.addField("smallBlind", Double::class.java) |
|
|
|
hhSchema.addField("bigBlind", Double::class.java) |
|
|
|
hhSchema.addField("bigBlind", Double::class.java) |
|
|
|
|