Subscriptions: Add database version
This commit is contained in:
parent
056f6fd2b5
commit
897755e836
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user