From e7ec68f4c1795ffab6d9bbd7904873938abeee9d Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Fri, 17 Sep 2021 23:06:41 +0800 Subject: [PATCH] Correct Rust type to ColumnType mapping --- sea-orm-macros/src/derives/entity_model.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sea-orm-macros/src/derives/entity_model.rs b/sea-orm-macros/src/derives/entity_model.rs index 768d3b7c..43f87524 100644 --- a/sea-orm-macros/src/derives/entity_model.rs +++ b/sea-orm-macros/src/derives/entity_model.rs @@ -165,8 +165,8 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec) -> syn::Res "String" | "&str" => quote! { String(None) }, "u8" | "i8" => quote! { TinyInteger }, "u16" | "i16" => quote! { SmallInteger }, - "u32" | "u64" | "i32" | "i64" => quote! { Integer }, - "u128" | "i128" => quote! { BigInteger }, + "u32" | "i32" => quote! { Integer }, + "u64" | "i64" => quote! { BigInteger }, "f32" => quote! { Float }, "f64" => quote! { Double }, "bool" => quote! { Boolean },