Skip to content

0.8.0

Compare
Choose a tag to compare
@tyt2y3 tyt2y3 released this 09 May 16:13

https://www.sea-ql.org/blog/2022-05-15-whats-new-in-0.8.0/

New Features

  • [sea-orm-cli] sea migrate generate to generate a new, empty migration file #656

Enhancements

  • Add max_connections option to CLI #670
  • Derive Eq, Clone for DbErr #677
  • Add is_changed to ActiveModelTrait #683

Bug Fixes

  • Fix DerivePrimaryKey with custom primary key column name #694
  • Fix DeriveEntityModel macros override column name #695
  • Fix Insert with no value supplied using DEFAULT #589

Breaking changes

  • Migration utilities are moved from sea-schema to sea-orm repo, under a new sub-crate sea-orm-migration. sea_schema::migration::prelude should be replaced by sea_orm_migration::prelude in all migration files

Upgrades

  • Upgrade sea-query to 0.24.x, sea-schema to 0.8.x
  • Upgrade example to Actix Web 4, Actix Web 3 remains #638
  • Added Tonic gRPC example #659
  • Upgrade GraphQL example to use axum 0.5.x
  • Upgrade axum example to 0.5.x

Fixed Issues

  • Failed to insert row with only default values #420
  • Reduce database connections to 1 during codegen #511
  • Column names with single letters separated by underscores are concatenated #630
  • Update Actix Web examples #639
  • Lower function missing #672
  • is_changed on active_model #674
  • Failing find_with_related with column_name attribute #693

New Contributors

Full Changelog: 0.7.1...0.8.0