Ensure persistent GUI chat history tables exist for upgraded databases.
()
| 254 | # ============== Chat History Operations ============== |
| 255 | |
| 256 | def ensure_chat_tables() -> None: |
| 257 | """Ensure persistent GUI chat history tables exist for upgraded databases.""" |
| 258 | conn = get_connection() |
| 259 | cursor = conn.cursor() |
| 260 | _create_chat_tables(cursor) |
| 261 | conn.commit() |
| 262 | conn.close() |
| 263 | |
| 264 | |
| 265 | def _chat_now() -> str: |
no test coverage detected