fix sqlite syntax error

This commit is contained in:
Evgeny Zinoviev 2022-11-18 04:12:39 +03:00
parent 7d2f2a89ac
commit f7eaeeb88e

View File

@ -45,7 +45,7 @@ class Database(SQLiteBase):
cursor = self.cursor()
if version < 1:
cursor.execute("CREATE TABLE IF NOT EXISTS status (guard_enabled) INTEGER NOT NULL")
cursor.execute("CREATE TABLE IF NOT EXISTS status (guard_enabled INTEGER NOT NULL)")
cursor.execute("INSERT INTO status (guard_enabled) VALUES (-1)")
self.commit()