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,