fix: autoincrement ?

This commit is contained in:
əlemi 2024-12-02 23:32:42 +01:00
parent 7ef5f956b9
commit b0b19c49b0
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -193,7 +193,7 @@ impl Database {
}; };
db.execute( db.execute(
"CREATE TABLE IF NOT EXISTS events ( "CREATE TABLE IF NOT EXISTS events (
id INTEGER PRIMARY KEY AUTO INCREMENT, id INTEGER PRIMARY KEY AUTOINCREMENT,
service INTEGER NOT NULL, service INTEGER NOT NULL,
time BIG INTEGER NOT NULL, time BIG INTEGER NOT NULL,
value BIG INTEGER NULL, value BIG INTEGER NULL,
@ -208,7 +208,7 @@ impl Database {
db.execute( db.execute(
"CREATE TABLE IF NOT EXISTS services ( "CREATE TABLE IF NOT EXISTS services (
id INTEGER PRIMARY KEY AUTO INCREMENT, id INTEGER PRIMARY KEY AUTOINCREMENT,
name STRING NOT NULL, name STRING NOT NULL,
)", params![] )", params![]
)?; )?;