mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-30 03:50:31 +00:00
Store a version parameter in the database for migrations
This commit is contained in:
parent
b6cd28e39c
commit
24167b5c29
3 changed files with 27 additions and 0 deletions
|
@ -144,3 +144,15 @@ class JellyfinDatabase():
|
|||
|
||||
def remove_media_by_parent_id(self, *args):
|
||||
self.cursor.execute(QU.delete_media_by_parent_id, args)
|
||||
|
||||
def get_version(self):
|
||||
self.cursor.execute(QU.get_version)
|
||||
|
||||
return self.cursor.fetchone()
|
||||
|
||||
def add_version(self, *args):
|
||||
'''
|
||||
We only ever want one value here, so erase the existing contents first
|
||||
'''
|
||||
self.cursor.execute(QU.delete_version)
|
||||
self.cursor.execute(QU.add_version, args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue