Fix tablename in upgrade script

This commit is contained in:
Julian Raufelder 2021-02-01 22:15:10 +01:00
parent 657e2877ba
commit 2ef3824b79
No known key found for this signature in database
GPG Key ID: 17EE71F6634E381D

View File

@ -57,7 +57,7 @@ internal class Upgrade3To4 @Inject constructor() : DatabaseUpgrade(3, 4) {
CloudEntityDao(DaoConfig(db, VaultEntityDao::class.java)) // CloudEntityDao(DaoConfig(db, VaultEntityDao::class.java)) //
.loadAll() // .loadAll() //
.map { .map {
Sql.update("CLOUD_ENTITY") // Sql.update("VAULT_ENTITY") //
.where("_id", Sql.eq(it.id)) // .where("_id", Sql.eq(it.id)) //
.set("POSITION", Sql.toInteger(it.id)) // .set("POSITION", Sql.toInteger(it.id)) //
.executeOn(db) .executeOn(db)