From b0b19c49b0abbb2291e5e65c88b3c780080f4351 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 2 Dec 2024 23:32:42 +0100 Subject: [PATCH] fix: autoincrement ? --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ccbc87b..d7d13c1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -193,7 +193,7 @@ impl Database { }; db.execute( "CREATE TABLE IF NOT EXISTS events ( - id INTEGER PRIMARY KEY AUTO INCREMENT, + id INTEGER PRIMARY KEY AUTOINCREMENT, service INTEGER NOT NULL, time BIG INTEGER NOT NULL, value BIG INTEGER NULL, @@ -208,7 +208,7 @@ impl Database { db.execute( "CREATE TABLE IF NOT EXISTS services ( - id INTEGER PRIMARY KEY AUTO INCREMENT, + id INTEGER PRIMARY KEY AUTOINCREMENT, name STRING NOT NULL, )", params![] )?;