Move custom-rules.acl to PublicDatabase

Less files to backup. Less constants to keep track of.
This commit is contained in:
Mygod
2017-12-16 23:50:54 -08:00
parent 4e71722a75
commit 870fd9e652
8 changed files with 31 additions and 30 deletions
@@ -139,9 +139,7 @@ object PrivateDatabase : OrmLiteSqliteOpenHelper(app, Key.DB_PROFILE, null, 25)
}
if (oldVersion < 25) {
kvPairDao.queryBuilder().where().`in`("key",
Key.id, Key.tfo, Key.serviceMode, Key.portProxy, Key.portLocalDns, Key.portTransproxy).query()
.forEach { PublicDatabase.kvPairDao.createOrUpdate(it) }
PublicDatabase.onUpgrade(database, 0, -1)
}
} catch (ex: Exception) {
app.track(ex)