Skip to content

Commit

Permalink
Allow custom_null to take column name and alias of different `IntoI…
Browse files Browse the repository at this point in the history
…den` types
  • Loading branch information
billy1624 committed Oct 4, 2024
1 parent 88d89ba commit bfeb23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sea-orm-migration/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ pub fn custom<T: IntoIden, N: IntoIden>(col: T, name: N) -> ColumnDef {
ColumnDef::new(col).custom(name).not_null().take()
}

pub fn custom_null<T: IntoIden>(col: T, name: T) -> ColumnDef {
pub fn custom_null<T: IntoIden, N: IntoIden>(col: T, name: N) -> ColumnDef {
ColumnDef::new(col).custom(name).null().take()
}

Expand Down

0 comments on commit bfeb23b

Please sign in to comment.