From c8d0b7151e3db974ac0a970b6a7fdd13894a4f45 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 4 Oct 2024 15:39:56 +0300 Subject: [PATCH] fix insert query --- src/app/database.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/database.rs b/src/app/database.rs index 9ee711bb..c7cb8f6b 100644 --- a/src/app/database.rs +++ b/src/app/database.rs @@ -25,7 +25,8 @@ impl Database { } pub fn add(&self) -> Result { - self.connection.execute("INSERT INTO `app`", []) + self.connection + .execute("INSERT INTO `app` DEFAULT VALUES", []) } pub fn records(&self) -> Result, Error> {