Fix sqlite exception
This commit is contained in:
parent
6fd476f262
commit
8388f00f7c
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ class LocationMessages(val app: TelegramApplication) {
|
|||
|
||||
override fun onCreate(db: SQLiteDatabase) {
|
||||
db.execSQL(TIMELINE_TABLE_CREATE)
|
||||
db.execSQL("CREATE INDEX $DATE_INDEX ON $TIMELINE_TABLE_NAME (\"$COL_TIME\" DESC);")
|
||||
db.execSQL("CREATE INDEX IF NOT EXISTS $DATE_INDEX ON $TIMELINE_TABLE_NAME (\"$COL_TIME\" DESC);")
|
||||
db.execSQL(BUFFER_TABLE_CREATE)
|
||||
}
|
||||
|
||||
|
@ -510,4 +510,4 @@ class LocationMessages(val app: TelegramApplication) {
|
|||
const val TYPE_BOT_BOTH = 5
|
||||
const val TYPE_MY_LOCATION = 6
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue