From fc300083a202fd5f777785b375dda94873d7f4ab Mon Sep 17 00:00:00 2001 From: dullbananas Date: Wed, 20 Dec 2023 16:15:04 -0700 Subject: [PATCH] Update utils.rs --- crates/db_schema/src/utils.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/db_schema/src/utils.rs b/crates/db_schema/src/utils.rs index be12639e7..100906216 100644 --- a/crates/db_schema/src/utils.rs +++ b/crates/db_schema/src/utils.rs @@ -416,10 +416,7 @@ static EMAIL_REGEX: Lazy = Lazy::new(|| { }); pub mod functions { - use diesel::{ - pg::Pg, - sql_types::{BigInt, Text, Timestamptz}, - }; + use diesel::sql_types::{BigInt, Text, Timestamptz}; sql_function! { fn hot_rank(score: BigInt, time: Timestamptz) -> Double; @@ -437,9 +434,6 @@ pub mod functions { // really this function is variadic, this just adds the two-argument version sql_function!(fn coalesce(x: diesel::sql_types::Nullable, y: T) -> T); - - // Use `AsText::new` - postfix_operator!(AsText, "::text", Text, backend: Pg); } pub const DELETED_REPLACEMENT_TEXT: &str = "*Permanently Deleted*";