Changed sqlx::types to varchar

This commit is contained in:
Franklin 2023-10-03 08:44:06 -04:00
parent 0bc8c0e6ab
commit 6d355edb1a
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ use crate::domain::{league::{LeagueState, LeagueVisibility}, enums::league_playe
impl sqlx::Type<Postgres> for LeagueState {
fn type_info() -> PgTypeInfo {
<&str as sqlx::Type<Postgres>>::type_info()
PgTypeInfo::with_name("varchar")
}
}
@ -31,7 +31,7 @@ impl sqlx::Decode<'_, Postgres> for LeagueState {
impl sqlx::Type<Postgres> for LeagueVisibility {
fn type_info() -> PgTypeInfo {
<&str as sqlx::Type<Postgres>>::type_info()
PgTypeInfo::with_name("varchar")
}
}
@ -59,7 +59,7 @@ impl sqlx::Decode<'_, Postgres> for LeagueVisibility {
impl sqlx::Type<Postgres> for LeaguePlayerStatus {
fn type_info() -> PgTypeInfo {
<&str as sqlx::Type<Postgres>>::type_info()
PgTypeInfo::with_name("varchar")
}
}