SeaQL / sea-orm

🐚 An async & dynamic ORM for Rust
https://www.sea-ql.org/SeaORM/
Apache License 2.0
7.03k stars 492 forks source link

Allow distinct types in `schema::custom()` #2326

Open sgoll opened 1 month ago

sgoll commented 1 month ago

PR Info

Bug Fixes

Breaking Changes

Strictly speaking, this may be considered a breaking change. However, it remains unclear whether explicitly stating the generic type argument is something that is actually done in the wild.

Rationale

The proposed change is in line with the existing signature of schema::enumeration(), another method that uses more than one IntoIden argument:

https://github.com/SeaQL/sea-orm/blob/aa0bbd9e017635ba646a76e7d7ac4f33bccd5db5/sea-orm-migration/src/schema.rs#L549-L560