From 897755e836f5ac043a683ac44e9f047184b63f6e Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 17 Aug 2019 12:49:36 -0700 Subject: Subscriptions: Add database version --- youtube/subscriptions.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'youtube') 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: -- cgit v1.2.3