Subscriptions: Add database version

This commit is contained in:
James Taylor 2019-08-17 12:49:36 -07:00
parent 056f6fd2b5
commit 897755e836

View File

@ -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: