diff --git a/src/main.rs b/src/main.rs index 711d8b4..9e269f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -78,7 +78,16 @@ async fn connect_sqlite(path: &PathBuf) -> sqlx::Result { #[cfg(feature = "sqlite")] async fn load_sqlite_template(sqlite_handle: &mut SqliteConnection) -> sqlx::Result { - sqlx::query(include_str!("sqlite/users.sql")).execute(sqlite_handle).await + sqlx::query(&*format!( + "{} {} {} {} {} {}", + include_str!("sqlite/users.sql"), + include_str!("sqlite/security_preferences.sql"), + include_str!("sqlite/privacy_preferences.sql"), + include_str!("sqlite/notification_preferences.sql"), + include_str!("sqlite/external_servers_privacy_preferences.sql"), + include_str!("sqlite/external_servers_preferences.sql"), + )).execute(sqlite_handle).await + } fn get_config(options: &Options) -> std::io::Result {