mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
tweaking the way Exceptions table is created at upgrade
This commit is contained in:
parent
553e658b88
commit
bf6920380a
@ -138,10 +138,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
try {
|
||||
createExceptionsTable(db)
|
||||
} catch (ignored: SQLiteException) {
|
||||
}
|
||||
try {
|
||||
db.execSQL("ALTER TABLE $EXCEPTIONS_TABLE_NAME ADD COLUMN $COL_CHILD_EVENT_ID INTEGER NOT NULL DEFAULT 0")
|
||||
} catch (ignored: SQLiteException) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user