mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 10:36:57 -07:00
Update Android app device registration
This commit is contained in:
parent
203a6d47b4
commit
896922de4f
4 changed files with 75 additions and 41 deletions
|
@ -534,6 +534,12 @@ def dbcheck():
|
|||
'media_info TEXT)'
|
||||
)
|
||||
|
||||
# mobile_devices table :: This table keeps record of devices linked with the mobile app
|
||||
c_db.execute(
|
||||
'CREATE TABLE IF NOT EXISTS mobile_devices (id INTEGER PRIMARY KEY AUTOINCREMENT, '
|
||||
'device_token TEXT NOT NULL UNIQUE, device_name TEXT, friendly_name TEXT)'
|
||||
)
|
||||
|
||||
# Upgrade sessions table from earlier versions
|
||||
try:
|
||||
c_db.execute('SELECT started FROM sessions')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue