mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
handle all exceptions at upgrading the db to version 13
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user