Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,201 changes: 4,201 additions & 0 deletions core/database/schemas/com.mifos.room.MifosDatabase/2.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
package com.mifos.room

import androidx.room.AutoMigration
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
Expand Down Expand Up @@ -151,7 +152,9 @@ import com.mifos.room.typeconverters.CustomTypeConverters
],
version = MifosDatabase.VERSION,
exportSchema = true,
autoMigrations = [],
autoMigrations = [
AutoMigration(from = 1, to = 2),
],
)
@TypeConverters(
CustomTypeConverters::class,
Expand All @@ -169,6 +172,6 @@ actual abstract class MifosDatabase : RoomDatabase() {
actual abstract val surveyDao: SurveyDao

companion object {
const val VERSION = 1
const val VERSION = 2
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,6 @@ data class LoanTimelineEntity(
val closedOnDate: List<Int>? = null,

val expectedMaturityDate: List<Int>? = null,

val withdrawnOnDate: List<Int>? = null,
Comment thread
sahilshivekar marked this conversation as resolved.
Comment thread
sahilshivekar marked this conversation as resolved.
) : Parcelable
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,6 @@ data class LoanWithAssociationsEntity(
val inArrears: Boolean = false,

val isNPA: Boolean = false,

val overpaidOnDate: List<Int>? = null,
Comment thread
sahilshivekar marked this conversation as resolved.
) : Parcelable
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
package com.mifos.room

import androidx.room.AutoMigration
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
Expand Down Expand Up @@ -151,7 +152,7 @@ import com.mifos.room.typeconverters.CustomTypeConverters
],
version = MifosDatabase.VERSION,
exportSchema = true,
autoMigrations = [],
autoMigrations = [AutoMigration(from = 1, to = 2)],
)
@TypeConverters(
CustomTypeConverters::class,
Expand All @@ -169,6 +170,6 @@ actual abstract class MifosDatabase : RoomDatabase() {
actual abstract val surveyDao: SurveyDao

companion object {
const val VERSION = 1
const val VERSION = 2
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
package com.mifos.room

import androidx.room.AutoMigration
import androidx.room.ConstructedBy
import androidx.room.Database
import androidx.room.RoomDatabase
Expand Down Expand Up @@ -153,7 +154,7 @@ import com.mifos.room.typeconverters.CustomTypeConverters
],
version = MifosDatabase.VERSION,
exportSchema = true,
autoMigrations = [],
autoMigrations = [AutoMigration(from = 1, to = 2)],
)
@TypeConverters(
CustomTypeConverters::class,
Expand All @@ -172,7 +173,7 @@ actual abstract class MifosDatabase : RoomDatabase() {
actual abstract val surveyDao: SurveyDao

companion object {
const val VERSION = 1
const val VERSION = 2
}
}

Expand Down
Loading
Loading