Skip to content

Commit 0470e66

Browse files
committed
Add migrations for LoanWithAssociations & Timeline entities
1 parent 2d40bfc commit 0470e66

10 files changed

Lines changed: 4218 additions & 12 deletions

File tree

core/database/schemas/com.mifos.room.MifosDatabase/2.json

Lines changed: 4201 additions & 0 deletions
Large diffs are not rendered by default.

core/database/src/androidMain/kotlin/com/mifos/room/MifosDatabase.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
package com.mifos.room
1111

12+
import androidx.room.AutoMigration
1213
import androidx.room.Database
1314
import androidx.room.RoomDatabase
1415
import androidx.room.TypeConverters
@@ -151,7 +152,9 @@ import com.mifos.room.typeconverters.CustomTypeConverters
151152
],
152153
version = MifosDatabase.VERSION,
153154
exportSchema = true,
154-
autoMigrations = [],
155+
autoMigrations = [
156+
AutoMigration(from = 1, to = 2),
157+
],
155158
)
156159
@TypeConverters(
157160
CustomTypeConverters::class,
@@ -169,6 +172,6 @@ actual abstract class MifosDatabase : RoomDatabase() {
169172
actual abstract val surveyDao: SurveyDao
170173

171174
companion object {
172-
const val VERSION = 1
175+
const val VERSION = 2
173176
}
174177
}

core/database/src/desktopMain/kotlin/com/mifos/room/MifosDatabase.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
package com.mifos.room
1111

12+
import androidx.room.AutoMigration
1213
import androidx.room.Database
1314
import androidx.room.RoomDatabase
1415
import androidx.room.TypeConverters
@@ -151,7 +152,7 @@ import com.mifos.room.typeconverters.CustomTypeConverters
151152
],
152153
version = MifosDatabase.VERSION,
153154
exportSchema = true,
154-
autoMigrations = [],
155+
autoMigrations = [AutoMigration(from = 1, to = 2)],
155156
)
156157
@TypeConverters(
157158
CustomTypeConverters::class,
@@ -169,6 +170,6 @@ actual abstract class MifosDatabase : RoomDatabase() {
169170
actual abstract val surveyDao: SurveyDao
170171

171172
companion object {
172-
const val VERSION = 1
173+
const val VERSION = 2
173174
}
174175
}

core/database/src/nativeMain/kotlin/com/mifos/room/MifosDatabase.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
package com.mifos.room
1111

12+
import androidx.room.AutoMigration
1213
import androidx.room.ConstructedBy
1314
import androidx.room.Database
1415
import androidx.room.RoomDatabase
@@ -153,7 +154,7 @@ import com.mifos.room.typeconverters.CustomTypeConverters
153154
],
154155
version = MifosDatabase.VERSION,
155156
exportSchema = true,
156-
autoMigrations = [],
157+
autoMigrations = [AutoMigration(from = 1, to = 2)],
157158
)
158159
@TypeConverters(
159160
CustomTypeConverters::class,
@@ -172,7 +173,7 @@ actual abstract class MifosDatabase : RoomDatabase() {
172173
actual abstract val surveyDao: SurveyDao
173174

174175
companion object {
175-
const val VERSION = 1
176+
const val VERSION = 2
176177
}
177178
}
178179

core/designsystem/src/commonMain/kotlin/com/mifos/core/designsystem/component/MifosDonutGraph.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mifos-x-field-officer-app/blob/master/LICENSE.md
99
*/
1010
package com.mifos.core.designsystem.component
1111

core/designsystem/src/commonMain/kotlin/com/mifos/core/designsystem/component/MifosStackedBarChart.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mifos-x-field-officer-app/blob/master/LICENSE.md
99
*/
1010
package com.mifos.core.designsystem.component
1111

feature/loan/src/commonMain/kotlin/com/mifos/feature/loan/loanDashboard/LoanDashboardScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mifos-x-field-officer-app/blob/master/LICENSE.md
99
*/
1010
package com.mifos.feature.loan.loanDashboard
1111

feature/loan/src/commonMain/kotlin/com/mifos/feature/loan/loanDashboard/LoanDashboardScreenRoute.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mifos-x-field-officer-app/blob/master/LICENSE.md
99
*/
1010
package com.mifos.feature.loan.loanDashboard
1111

feature/loan/src/commonMain/kotlin/com/mifos/feature/loan/loanDashboard/LoanDashboardState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mifos-x-field-officer-app/blob/master/LICENSE.md
99
*/
1010
package com.mifos.feature.loan.loanDashboard
1111

feature/loan/src/commonMain/kotlin/com/mifos/feature/loan/loanDashboard/LoanDashboardViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
77
*
8-
* See https://github.com/openMF/android-client/blob/master/LICENSE.md
8+
* See https://github.com/openMF/mifos-x-field-officer-app/blob/master/LICENSE.md
99
*/
1010
package com.mifos.feature.loan.loanDashboard
1111

0 commit comments

Comments
 (0)