Perform the migration, even if the current version is not known.
This commit is contained in:
parent
075571d802
commit
cb0fa05e66
1 changed files with 1 additions and 3 deletions
|
|
@ -46,9 +46,7 @@ class MigrationPresenter @Inject constructor(
|
||||||
val migrationValue = migrationStoreVersion ?: return@LaunchedEffect
|
val migrationValue = migrationStoreVersion ?: return@LaunchedEffect
|
||||||
if (migrationValue == -1) {
|
if (migrationValue == -1) {
|
||||||
// Fresh install, no migration needed
|
// Fresh install, no migration needed
|
||||||
Timber.d("Fresh install, no migration needed.")
|
Timber.d("Fresh install, or previous installed application did not have the migration mechanism.")
|
||||||
migrationStore.setApplicationMigrationVersion(lastMigration)
|
|
||||||
return@LaunchedEffect
|
|
||||||
}
|
}
|
||||||
if (migrationValue == lastMigration) {
|
if (migrationValue == lastMigration) {
|
||||||
Timber.d("Current app migration version: $migrationValue. No migration needed.")
|
Timber.d("Current app migration version: $migrationValue. No migration needed.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue