From 6fe722f05777beff8e0557e58332b4205e080a76 Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Fri, 9 Jan 2026 20:49:33 +0100 Subject: [PATCH] modified: bot.py --- bot.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bot.py b/bot.py index ffb464d..3545dfe 100644 --- a/bot.py +++ b/bot.py @@ -52,6 +52,15 @@ def init_db(): archived BOOLEAN DEFAULT FALSE ) ''') + # Add new columns if missing + try: + cursor.execute("ALTER TABLE tickets ADD COLUMN referenced_message_content TEXT") + except mysql.connector.errors.ProgrammingError: + pass + try: + cursor.execute("ALTER TABLE tickets ADD COLUMN referenced_message_author VARCHAR(255)") + except mysql.connector.errors.ProgrammingError: + pass cursor.execute(''' CREATE TABLE IF NOT EXISTS server_settings ( guild_id BIGINT PRIMARY KEY,