captsa add alert
This commit is contained in:
9
db.py
9
db.py
@@ -46,6 +46,15 @@ def init_db():
|
||||
)
|
||||
''')
|
||||
|
||||
# Key-value store — generic flags (e.g. captcha_active)
|
||||
c.execute('''
|
||||
CREATE TABLE IF NOT EXISTS kv_store (
|
||||
key TEXT PRIMARY KEY,
|
||||
value TEXT,
|
||||
updated_at TEXT NOT NULL DEFAULT (datetime('now'))
|
||||
)
|
||||
''')
|
||||
|
||||
# Migration: add new columns if upgrading an existing database
|
||||
for _col in [
|
||||
'ALTER TABLE town_state ADD COLUMN player_id TEXT',
|
||||
|
||||
Reference in New Issue
Block a user