Changed sqlx::types to varchar
This commit is contained in:
parent
0bc8c0e6ab
commit
6d355edb1a
|
@ -4,7 +4,7 @@ use crate::domain::{league::{LeagueState, LeagueVisibility}, enums::league_playe
|
||||||
|
|
||||||
impl sqlx::Type<Postgres> for LeagueState {
|
impl sqlx::Type<Postgres> for LeagueState {
|
||||||
fn type_info() -> PgTypeInfo {
|
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 {
|
impl sqlx::Type<Postgres> for LeagueVisibility {
|
||||||
fn type_info() -> PgTypeInfo {
|
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 {
|
impl sqlx::Type<Postgres> for LeaguePlayerStatus {
|
||||||
fn type_info() -> PgTypeInfo {
|
fn type_info() -> PgTypeInfo {
|
||||||
<&str as sqlx::Type<Postgres>>::type_info()
|
PgTypeInfo::with_name("varchar")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue