def table_users():
try:
connection = sqlite3.connect( f'{ path_to_database }\\users.db' )
cursor = connection.cursor()
except Exception:
print('[LOG] проблемы с подключения к бд :c')
query_for_datebase = """
CREATE TABLE IF NOT EXISTS `users` (
id INTEGER PRIMARY KEY ASC AUTOINCREMENT NOT NULL,
user_id TEXT UNIQUE NOT NULL,
balance INT NOT NULL DEFAULT (0),
status INT NOT NULL DEFAULT (0)
)"""
cursor.execute(query_for_datebase)
connection.commit()
connection.close()
Таблицу не создает. В чем причина?