参照するデータベースを修正(Issue #1)

This commit is contained in:
suti7yk5032 2024-06-04 17:55:44 +09:00
parent ab92ecfb4a
commit 450264054b

View file

@ -34,7 +34,7 @@ class Cert():
cursor.execute(initial_sql_web_auth)
initial_sql_discord_user = "CREATE TABLE discord_user (id INTEGER PRIMARY KEY AUTOINCREMENT, discord_username VARCHAR(32) NOT NULL, discord_userid VARCHAR(18) NOT NULL);"
cursor.execute(initial_sql_discord_user)
initial_sql_insert_web_admin = "INSERT INTO discord_user (username, password) VALUES ('admin', 'admin');"
initial_sql_insert_web_admin = "INSERT INTO web_auth (username, password) VALUES ('admin', 'admin');"
cursor.execute(initial_sql_insert_web_admin)
self.db.commit()