fix: changed formatting in create_table

This commit is contained in:
Seaswimmer 2023-08-02 01:06:35 -04:00
parent 95b4abd8bb
commit b2f4e9f3e5
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -25,10 +25,11 @@ class MusicDownloader(commands.Cog):
con = sqlite3.connect(db_path)
cur = con.cursor()
cur.execute('''
CREATE TABLE IF NOT EXISTS blacklist_log (
user_id INTEGER PRIMARY KEY,
reason STRING DEFAULT NULL
);
CREATE TABLE [IF NOT EXISTS] "blacklist_log" (
"user_id" INTEGER NOT NULL UNIQUE,
"reason" TEXT DEFAULT NULL,
PRIMARY KEY("user_id")
);
''')
con.commit()
con.close()