updating some lithuanian strings

This commit is contained in:
tibbi
2018-04-04 09:38:07 +02:00
parent 51546e4eb9
commit f14bc3d1e4
2 changed files with 12 additions and 10 deletions

View File

@ -35,11 +35,13 @@ class DBHelper private constructor(private val mContext: Context) : SQLiteOpenHe
}
override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {
if (oldVersion < 2)
if (oldVersion < 2) {
db.execSQL("ALTER TABLE $TABLE_NAME ADD COLUMN $COL_TYPE INTEGER DEFAULT 0")
}
if (oldVersion < 3)
if (oldVersion < 3) {
db.execSQL("ALTER TABLE $TABLE_NAME ADD COLUMN $COL_PATH TEXT DEFAULT ''")
}
}
private fun insertFirstNote(db: SQLiteDatabase) {