diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-08-17 12:49:36 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-08-17 12:49:36 -0700 |
commit | 897755e836f5ac043a683ac44e9f047184b63f6e (patch) | |
tree | b1a666d5d4fad0c9160f703367e9176bd68b4c45 | |
parent | 056f6fd2b5c4d6e4f387a73be1bd7c0207f834b3 (diff) | |
download | yt-local-897755e836f5ac043a683ac44e9f047184b63f6e.tar.lz yt-local-897755e836f5ac043a683ac44e9f047184b63f6e.tar.xz yt-local-897755e836f5ac043a683ac44e9f047184b63f6e.zip |
Subscriptions: Add database version
-rw-r--r-- | youtube/subscriptions.py | 3 |
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: |