aboutsummaryrefslogtreecommitdiff
path: root/src/db/manual_migrate.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2024-08-16 22:35:46 -0400
committerNathan Perry <np@nathanperry.dev>2024-08-16 22:35:47 -0400
commite0a9b18f45858829f88cbe20611aaf696fc5bf6a (patch)
treebaef5abb258a7857fabb3f084627acd9a469677f /src/db/manual_migrate.rs
parentef056edf92b678265a4666e1f9405e3b0ce66a42 (diff)
restore support for volume commands
Diffstat (limited to 'src/db/manual_migrate.rs')
-rw-r--r--src/db/manual_migrate.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/db/manual_migrate.rs b/src/db/manual_migrate.rs
index 851f0d8..b3e8a9c 100644
--- a/src/db/manual_migrate.rs
+++ b/src/db/manual_migrate.rs
@@ -1,17 +1,5 @@
-use crate::{
- db::{
- do_migrate,
- schema::*,
- POOL,
- },
- guild_id,
-};
-use anyhow::anyhow;
use diesel::{
- associations::HasTable,
- backend::Backend,
pg::Pg,
- query_builder::AsQuery,
ExpressionMethods,
};
use diesel_async::{
@@ -21,6 +9,8 @@ use diesel_async::{
RunQueryDsl,
};
+use crate::db::schema::*;
+
#[inline]
pub async fn connection_no_migrate()
-> anyhow::Result<diesel_async::pooled_connection::deadpool::Object<AsyncPgConnection>> {