diff --git a/sea-orm-migration/src/schema.rs b/sea-orm-migration/src/schema.rs index dda97bcf4..67447441d 100644 --- a/sea-orm-migration/src/schema.rs +++ b/sea-orm-migration/src/schema.rs @@ -543,11 +543,11 @@ pub fn uuid_uniq(col: T) -> ColumnDef { uuid(col).unique_key().take() } -pub fn custom(col: T, name: T) -> ColumnDef { +pub fn custom(col: T, name: N) -> ColumnDef { ColumnDef::new(col).custom(name).not_null().take() } -pub fn custom_null(col: T, name: T) -> ColumnDef { +pub fn custom_null(col: T, name: N) -> ColumnDef { ColumnDef::new(col).custom(name).null().take() }