mirror of
https://github.com/Matte23/circolapp.git
synced 2025-12-06 07:29:10 +00:00
Do not send notifications if database was empty
This commit is contained in:
@@ -28,7 +28,7 @@ actual class DatabaseDriverFactory(private val path: String) {
|
||||
val currentVer = DatabaseFactory.getVersion(it)
|
||||
if (currentVer == 0) {
|
||||
AppDatabase.Schema.create(it)
|
||||
DatabaseFactory.setVersion(it, 1)
|
||||
DatabaseFactory.setVersion(it, AppDatabase.Schema.version)
|
||||
} else {
|
||||
val schemaVer: Int = AppDatabase.Schema.version
|
||||
if (schemaVer > currentVer) {
|
||||
|
||||
Reference in New Issue
Block a user