generated from lucien/actix-react-template
Fixed databse init function again
This commit is contained in:
parent
8f8fc0c46e
commit
85ab4aba4f
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue