Skip to content

Commit

Permalink
Fix automatic table creation failure.(#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
dora4 committed Dec 15, 2024
1 parent 6d3a76f commit 94df9ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dcache/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ afterEvaluate {
from(components["release"])
groupId = "com.github.dora4"
artifactId = "dcache-android"
version = "3.1.4"
version = "3.1.5"
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion dcache/src/main/java/dora/db/Orm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ object Orm {
private fun prepare(helper: OrmSQLiteOpenHelper) {
dbHelper = helper
database = helper.writableDatabase
dbState = STATE_DATABASE_EXISTS
database?.let {
helper.onCreate(it)
dbState = STATE_DATABASE_EXISTS
}
}

private fun prepare(
Expand Down

0 comments on commit 94df9ea

Please sign in to comment.