aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-08-17 12:49:36 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-08-17 12:49:36 -0700
commit897755e836f5ac043a683ac44e9f047184b63f6e (patch)
treeb1a666d5d4fad0c9160f703367e9176bd68b4c45 /youtube
parent056f6fd2b5c4d6e4f387a73be1bd7c0207f834b3 (diff)
downloadyt-local-897755e836f5ac043a683ac44e9f047184b63f6e.tar.lz
yt-local-897755e836f5ac043a683ac44e9f047184b63f6e.tar.xz
yt-local-897755e836f5ac043a683ac44e9f047184b63f6e.zip
Subscriptions: Add database version
Diffstat (limited to 'youtube')
-rw-r--r--youtube/subscriptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py
index 6150afe..26958d0 100644
--- a/youtube/subscriptions.py
+++ b/youtube/subscriptions.py
@@ -59,6 +59,9 @@ def open_database():
sql_channel_id integer NOT NULL REFERENCES subscribed_channels(id) ON UPDATE CASCADE ON DELETE CASCADE,
UNIQUE(tag, sql_channel_id)
)''')
+ cursor.execute('''CREATE TABLE IF NOT EXISTS db_info (
+ version integer DEFAULT 1
+ )''')
connection.commit()
except: