From 156893d774b4da5b541fdbb08428f9ec392949a0 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sun, 25 Apr 2021 18:21:52 +0100 Subject: Update docs, unify on SQLx, bugfixes (#40) * Begin moving to sqlx for local too * Stupid scanners should just have a nice cup of tea Random internet shit searching for /.env or whatever * Remove diesel and rusqlite fully --- atuin-server/src/database.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'atuin-server/src/database.rs') diff --git a/atuin-server/src/database.rs b/atuin-server/src/database.rs index 5945baaf..4a3828d0 100644 --- a/atuin-server/src/database.rs +++ b/atuin-server/src/database.rs @@ -40,6 +40,8 @@ impl Postgres { .connect(uri) .await?; + sqlx::migrate!("./migrations").run(&pool).await?; + Ok(Self { pool }) } } -- cgit v1.3.1