modified: bot.py
This commit is contained in:
9
bot.py
9
bot.py
@@ -52,6 +52,15 @@ def init_db():
|
|||||||
archived BOOLEAN DEFAULT FALSE
|
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('''
|
cursor.execute('''
|
||||||
CREATE TABLE IF NOT EXISTS server_settings (
|
CREATE TABLE IF NOT EXISTS server_settings (
|
||||||
guild_id BIGINT PRIMARY KEY,
|
guild_id BIGINT PRIMARY KEY,
|
||||||
|
|||||||
Reference in New Issue
Block a user