|
|
|
|
@ -94,6 +94,18 @@ class PokerAnalyticsMigration : RealmMigration { |
|
|
|
|
currentVersion++ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Migrate to version 6 |
|
|
|
|
if (currentVersion == 5) { |
|
|
|
|
Timber.d("*** Running migration ${currentVersion + 1}") |
|
|
|
|
schema.get("Transaction")?.let { |
|
|
|
|
it.addField("dayOfWeek", Integer::class.java) |
|
|
|
|
it.addField("month", Integer::class.java) |
|
|
|
|
it.addField("year", Integer::class.java) |
|
|
|
|
it.addField("dayOfMonth", Integer::class.java) |
|
|
|
|
} |
|
|
|
|
currentVersion++ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun equals(other: Any?): Boolean { |
|
|
|
|
|