mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-22 06:56:46 +01:00
catch exceptions thrown at adding a new column to exceptions table
This commit is contained in:
parent
4c66bd4e13
commit
521eeb6b19
@ -139,7 +139,10 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
createExceptionsTable(db)
|
||||
} catch (ignored: SQLiteException) {
|
||||
}
|
||||
db.execSQL("ALTER TABLE $EXCEPTIONS_TABLE_NAME ADD COLUMN $COL_CHILD_EVENT_ID INTEGER NOT NULL DEFAULT 0")
|
||||
try {
|
||||
db.execSQL("ALTER TABLE $EXCEPTIONS_TABLE_NAME ADD COLUMN $COL_CHILD_EVENT_ID INTEGER NOT NULL DEFAULT 0")
|
||||
} catch (ignored: SQLiteException) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user