cursor.execute("""CREATE TABLE IF NOT EXISTS information
(id INTEGER PRIMARY KEY AUTOINCREMENT,userid INTEGER,money INTEGER,weight INTEGER,sportmode INTEGER)
""")
cursor.execute("""CREATE TABLE IF NOT EXISTS task
(id INTEGER PRIMARY KEY AUTOINCREMENT,list TEXT, status INTEGER)
""")
cursor.execute("""CREATE TABLE IF NOT EXISTS what
(mycommands TEXT)
""")
cursor.execute("""CREATE TABLE IF NOT EXISTS accounts
(login TEXT, password TEXT, token TEXT)
""")
cursor.execute("""CREATE TABLE IF NOT EXISTS information
(id INTEGER PRIMARY KEY AUTOINCREMENT,userid INTEGER,money INTEGER,weight INTEGER,sportmode INTEGER);
CREATE TABLE IF NOT EXISTS task
(id INTEGER PRIMARY KEY AUTOINCREMENT,list TEXT, status INTEGER);
CREATE TABLE IF NOT EXISTS what
(mycommands TEXT);
CREATE TABLE IF NOT EXISTS accounts
(login TEXT, password TEXT, token TEXT)
""")
sql_script = """
CREATE TABLE IF NOT EXISTS information
(id INTEGER PRIMARY KEY AUTOINCREMENT,userid INTEGER,money INTEGER,weight INTEGER,sportmode INTEGER);
CREATE TABLE IF NOT EXISTS task
(id INTEGER PRIMARY KEY AUTOINCREMENT,list TEXT, status INTEGER);
CREATE TABLE IF NOT EXISTS what
(mycommands TEXT);
CREATE TABLE IF NOT EXISTS accounts
(login TEXT, password TEXT, token TEXT)
"""
for sql in sql_script.split(";\n"):
cursor.execute(sql)