diff --git a/ee/tabby-db/src/lib.rs b/ee/tabby-db/src/lib.rs index 5835989055fb..cbaf91d6aedb 100644 --- a/ee/tabby-db/src/lib.rs +++ b/ee/tabby-db/src/lib.rs @@ -42,7 +42,9 @@ impl DbConn { pub async fn new() -> Result { tokio::fs::create_dir_all(path::db_file().parent().unwrap()).await?; - let options = SqliteConnectOptions::new().filename(path::db_file()); + let options = SqliteConnectOptions::new() + .filename(path::db_file()) + .create_if_missing(true); let pool = SqlitePool::connect_with(options).await?; Self::init_db(pool).await }