mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
catch exceptions thrown at adding a new column to exceptions table
This commit is contained in:
@@ -139,7 +139,10 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
|||||||
createExceptionsTable(db)
|
createExceptionsTable(db)
|
||||||
} catch (ignored: SQLiteException) {
|
} 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) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user