Skip to content

Commit

Permalink
Allow distinct types in schema::custom()
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoll committed Aug 11, 2024
1 parent 7e433df commit 99ef226
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 @@ -538,7 +538,7 @@ pub fn uuid_uniq<T: IntoIden>(col: T) -> ColumnDef {
uuid(col).unique_key().take()
}

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

Expand Down

0 comments on commit 99ef226

Please sign in to comment.