From fd064089629d09c2cb8165b19f2dfd7f5fcc2ee3 Mon Sep 17 00:00:00 2001 From: mStar aka a person <12024604-mstarongitlab@users.noreply.gitlab.com> Date: Sun, 31 Dec 2023 16:38:59 +0000 Subject: [PATCH] blob --- src/storage/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/mod.rs b/src/storage/mod.rs index ff747be..a19f53f 100644 --- a/src/storage/mod.rs +++ b/src/storage/mod.rs @@ -17,7 +17,7 @@ pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("migrations"); pub fn establish_connection(db_url: &str) -> PgConnection { //SqliteConnection::establish(db_url).unwrap_or_else(|e| panic!("Error connecting to {}: {}", db_url, e)) - let conn = PgConnection::establish(db_url) + let mut conn = PgConnection::establish(db_url) .unwrap_or_else(|e| panic!("Error connecting to {}: {}", db_url, e)); // TODO: Add migrations here conn