Fix TikTok table migration: use executescript for init_db

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric 2026-08-14 09:12:03 -05:00
parent 0bf692e943
commit d396afb5d7

View File

@ -210,7 +210,7 @@ def init_db() -> None:
conn.execute(
"CREATE INDEX IF NOT EXISTS idx_shorts_jobs_room_day ON shorts_jobs(room_id, push_date, status)"
)
conn.execute(
conn.executescript(
"""
CREATE TABLE IF NOT EXISTS tiktok_channels (
id TEXT PRIMARY KEY,