fix: changed formatting in create_table
This commit is contained in:
parent
95b4abd8bb
commit
b2f4e9f3e5
1 changed files with 5 additions and 4 deletions
|
@ -25,10 +25,11 @@ class MusicDownloader(commands.Cog):
|
||||||
con = sqlite3.connect(db_path)
|
con = sqlite3.connect(db_path)
|
||||||
cur = con.cursor()
|
cur = con.cursor()
|
||||||
cur.execute('''
|
cur.execute('''
|
||||||
CREATE TABLE IF NOT EXISTS blacklist_log (
|
CREATE TABLE [IF NOT EXISTS] "blacklist_log" (
|
||||||
user_id INTEGER PRIMARY KEY,
|
"user_id" INTEGER NOT NULL UNIQUE,
|
||||||
reason STRING DEFAULT NULL
|
"reason" TEXT DEFAULT NULL,
|
||||||
);
|
PRIMARY KEY("user_id")
|
||||||
|
);
|
||||||
''')
|
''')
|
||||||
con.commit()
|
con.commit()
|
||||||
con.close()
|
con.close()
|
||||||
|
|
Loading…
Reference in a new issue