aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
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: