handle all exceptions at upgrading the db to version 13

This commit is contained in:
tibbi 2017-10-25 19:47:59 +02:00
parent e5ed0539b6
commit e562b268ba
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
if (oldVersion < 13) {
try {
createExceptionsTable(db)
} catch (ignored: SQLiteException) {
} catch (ignored: Exception) {
db.execSQL("ALTER TABLE $EXCEPTIONS_TABLE_NAME ADD COLUMN $COL_CHILD_EVENT_ID INTEGER NOT NULL DEFAULT 0")
}
}