Add index to sessions_continued database table

This commit is contained in:
JonnyWong16 2020-04-30 17:55:50 -07:00
commit e555b7e456
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -2119,6 +2119,9 @@ def dbcheck():
c_db.execute(
'CREATE UNIQUE INDEX IF NOT EXISTS idx_imgur_lookup ON imgur_lookup (img_hash)'
)
c_db.execute(
'CREATE UNIQUE INDEX IF NOT EXISTS idx_sessions_continued ON sessions_continued (user_id, machine_id, media_type)'
)
conn_db.commit()
c_db.close()