From 62fe591d19f460eef1e43c39fbe46a26cd774977 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sat, 27 Mar 2021 21:54:08 -0700 Subject: [PATCH] Update session_history table indices stopped asc --- plexpy/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plexpy/__init__.py b/plexpy/__init__.py index 02e7633d..425eac86 100644 --- a/plexpy/__init__.py +++ b/plexpy/__init__.py @@ -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" '