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*";