mirror of
https://gitlab.com/questable/questable_bot
synced 2026-09-19 19:32:02 +02:00
Add token table, get_tokens(), add_token()
This commit is contained in:
@@ -557,6 +557,9 @@ queries = [
|
||||
|
||||
("CREATE TABLE IF NOT EXISTS state(chat_id int PRIMARY KEY, state "
|
||||
"varchar(10), extra varchar(10));"),
|
||||
|
||||
("CREATE TABLE IF NOT EXISTS tokens(chat_id int, token varchar(36),"
|
||||
"UNIQUE(chat_id, token));"),
|
||||
]
|
||||
for query in queries:
|
||||
cursor.execute(query)
|
||||
|
||||
Reference in New Issue
Block a user