From 85ab4aba4f6ee132bde85e7ffaa9839b04bb0a6a Mon Sep 17 00:00:00 2001 From: Lukian Date: Fri, 6 Dec 2024 01:31:27 +0100 Subject: [PATCH] Fixed databse init function again --- back/src/create_db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/src/create_db.rs b/back/src/create_db.rs index 06e2663..67eb2af 100644 --- a/back/src/create_db.rs +++ b/back/src/create_db.rs @@ -6,9 +6,9 @@ pub fn init() -> sqlite::Result<()> { OpenFlags::new() .with_create() .with_read_write() - ); + )?; - conn?.execute( + conn.execute( "CREATE TABLE IF NOT EXISTS articles ( id INTEGER PRIMARY KEY, title TEXT NOT NULL,