modified: bot.py

This commit is contained in:
SimolZimol
2026-01-09 20:49:33 +01:00
parent 76d709c638
commit 6fe722f057

9
bot.py
View File

@@ -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,