Fix codegen with Enum in expanded format (#624)
This commit is contained in:
parent
ec70ed1052
commit
cd3b11a503
@ -124,6 +124,10 @@ impl Column {
|
|||||||
let s = s.to_string();
|
let s = s.to_string();
|
||||||
quote! { ColumnType::Custom(#s.to_owned()).def() }
|
quote! { ColumnType::Custom(#s.to_owned()).def() }
|
||||||
}
|
}
|
||||||
|
ColumnType::Enum(enum_name, _) => {
|
||||||
|
let enum_ident = format_ident!("{}", enum_name.to_camel_case());
|
||||||
|
quote! { #enum_ident::db_type() }
|
||||||
|
}
|
||||||
#[allow(unreachable_patterns)]
|
#[allow(unreachable_patterns)]
|
||||||
_ => unimplemented!(),
|
_ => unimplemented!(),
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user