|
|
|
|
@ -181,8 +181,8 @@ class PokerAnalyticsMigration : RealmMigration { |
|
|
|
|
sessionSchema.removeField("hands") |
|
|
|
|
hhSchema.addRealmObjectField("session", sessionSchema) |
|
|
|
|
} ?: throw PAIllegalStateException("Session schema not found") |
|
|
|
|
hhSchema.addField("smallBlind", Double::class.java) |
|
|
|
|
hhSchema.addField("bigBlind", Double::class.java) |
|
|
|
|
hhSchema.addField("smallBlind", Double::class.java).setRequired("smallBlind", false) |
|
|
|
|
hhSchema.addField("bigBlind", Double::class.java).setRequired("bigBlind", false) |
|
|
|
|
hhSchema.addField("ante", Double::class.java) |
|
|
|
|
hhSchema.addField("bigBlindAnte", Boolean::class.java) |
|
|
|
|
hhSchema.addField("numberOfPlayers", Int::class.java) |
|
|
|
|
@ -194,13 +194,13 @@ class PokerAnalyticsMigration : RealmMigration { |
|
|
|
|
hhSchema.addField("dayOfMonth", Integer::class.java) |
|
|
|
|
|
|
|
|
|
val cardSchema = schema.create("Card") |
|
|
|
|
cardSchema.addField("value", Int::class.java) |
|
|
|
|
cardSchema.addField("suitIdentifier", Int::class.java) |
|
|
|
|
cardSchema.addField("value", Int::class.java).setRequired("value", false) |
|
|
|
|
cardSchema.addField("suitIdentifier", Int::class.java).setRequired("suitIdentifier", false) |
|
|
|
|
cardSchema.addField("index", Int::class.java) |
|
|
|
|
hhSchema.addRealmListField("board", cardSchema) |
|
|
|
|
|
|
|
|
|
val actionSchema = schema.create("Action") |
|
|
|
|
actionSchema.addField("street", Int::class.java) |
|
|
|
|
actionSchema.addField("streetIdentifier", Int::class.java) |
|
|
|
|
actionSchema.addField("index", Int::class.java) |
|
|
|
|
actionSchema.addField("position", Int::class.java) |
|
|
|
|
actionSchema.addField("typeIdentifier", Int::class.java).setRequired("typeIdentifier", false) |
|
|
|
|
|