Update session_history table indices stopped asc

This commit is contained in:
JonnyWong16 2021-03-27 21:54:08 -07:00
parent 3136e0c82f
commit 62fe591d19
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -2367,7 +2367,7 @@ def dbcheck():
)
c_db.execute(
'CREATE INDEX IF NOT EXISTS "idx_session_history_media_type_stopped" '
'ON "session_history" ("media_type", "stopped")'
'ON "session_history" ("media_type", "stopped" ASC)'
)
c_db.execute(
'CREATE INDEX IF NOT EXISTS "idx_session_history_rating_key" '
@ -2391,7 +2391,7 @@ def dbcheck():
)
c_db.execute(
'CREATE INDEX IF NOT EXISTS "idx_session_history_user_id_stopped" '
'ON "session_history" ("user_id", "stopped")'
'ON "session_history" ("user_id", "stopped" ASC)'
)
c_db.execute(
'CREATE INDEX IF NOT EXISTS "idx_session_history_section_id" '
@ -2399,7 +2399,7 @@ def dbcheck():
)
c_db.execute(
'CREATE INDEX IF NOT EXISTS "idx_session_history_section_id_stopped" '
'ON "session_history" ("section_id", "stopped")'
'ON "session_history" ("section_id", "stopped" ASC)'
)
c_db.execute(
'CREATE INDEX IF NOT EXISTS "idx_session_history_reference_id" '