sea-orm-cli 1.0 doesn't support mysql type: `bit`
Closed this issue · 2 comments
uf-fipper commented
thread 'main' panicked at D:\Program Files\rust\cargo\registry\src\rsproxy.cn-0dccff568467c15b\sea-orm-codegen-1.0.0\src\entity\column.rs:80:22:
not implemented
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
But when I use 0.12.15, it works.
AntoinePrv commented
Same with Postgres using the migration
.col(
ColumnDef::new(UploadedFile::Sha256).bit(Some(256))
)
Generates a bit(256)
in Postgres, then running sea-orm-cli generate
(1.0.0), I run into the same error, originated in this list where Bit is not mentionned.
I would be cool to have support for a fixed sized rust data type too!
billy1624 commented
Hey everyone, thanks for the report!! Could you please try the PR:
cargo install sea-orm-cli --force --git https://github.com/SeaQL/sea-orm --branch codegen-col-type-resolution