tweaking the way Exceptions table is created at upgrade

This commit is contained in:
tibbi 2017-07-17 17:30:59 +02:00
parent 553e658b88
commit bf6920380a

View File

@ -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) {
}
}
}