Skip to content

Commit

Permalink
Upping version.
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Dec 22, 2022
1 parent a5af85c commit 1f6ac9f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
namespace "com.jerboa"
minSdk 26
targetSdk 33
versionCode 20
versionName "0.0.21"
versionCode 21
versionName "0.0.22"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
11 changes: 9 additions & 2 deletions app/src/main/java/com/jerboa/db/AppDB.kt
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,15 @@ val MIGRATION_4_5 = object : Migration(4, 5) {
}
}

val MIGRATION_5_6 = object : Migration(5, 6) {
override fun migrate(database: SupportSQLiteDatabase) {
// Update changelog viewed
database.execSQL("UPDATE AppSettings SET viewed_changelog = 0")
}
}

@Database(
version = 5,
version = 6,
entities = [Account::class, AppSettings::class],
exportSchema = true
)
Expand All @@ -241,7 +248,7 @@ abstract class AppDB : RoomDatabase() {
"jerboa"
)
.allowMainThreadQueries()
.addMigrations(MIGRATION_1_2, MIGRATION_2_3, MIGRATION_3_4, MIGRATION_4_5)
.addMigrations(MIGRATION_1_2, MIGRATION_2_3, MIGRATION_3_4, MIGRATION_4_5, MIGRATION_5_6)
// Necessary because it can't insert data on creation
.addCallback(object : Callback() {
override fun onOpen(db: SupportSQLiteDatabase) {
Expand Down

0 comments on commit 1f6ac9f

Please sign in to comment.