Skip to content

Commit

Permalink
Drop the use of #[sea_orm(table_name = "col_name")] in DeriveColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Jun 26, 2023
1 parent 90cb5cb commit 1fba661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sea-orm-macros/src/derives/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn impl_default_as_str(ident: &Ident, data: &Data) -> syn::Result<TokenStrea
continue;
}
attr.parse_nested_meta(|meta| {
if meta.path.is_ident("column_name") || meta.path.is_ident("table_name") {
if meta.path.is_ident("column_name") {
column_name = meta.value()?.parse::<LitStr>()?.value();
} else {
// Reads the value expression to advance the parse stream.
Expand Down

0 comments on commit 1fba661

Please sign in to comment.