Skip to content

chore(deps): update sea-orm-migration requirement from 1 to 2 - #22

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/sea-orm-migration-2
Closed

chore(deps): update sea-orm-migration requirement from 1 to 2#22
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/sea-orm-migration-2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 31, 2026

Copy link
Copy Markdown

Updates the requirements on sea-orm-migration to permit the latest version.

Release notes

Sourced from sea-orm-migration's releases.

2.0.0

SeaORM 2.0.0

SeaORM 2.0 is the first stable release of the 2.x line. It reworks how entities, relations, and ActiveModels are defined and used, adds an entity-first workflow, introduces role-based access control, and brings the library onto SeaQuery 1.0 and SQLx 0.9.

The full, itemized changelog for the 2.0 series (all release candidates included) is in CHANGELOG.md.

Highlights

New entity format

Relations are now declared directly on the Model struct with #[sea_orm::model], replacing the separate Relation enum and Related impls.

#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "user")]
pub struct Model {
    #[sea_orm(primary_key)]
    pub id: i32,
    pub name: String,
    #[sea_orm(has_one)]
    pub profile: HasOne<super::profile::Entity>,
    #[sea_orm(has_many)]
    pub posts: HasMany<super::post::Entity>,
}

See the new entity format walk-through.

BelongsTo relation type with compile-time cardinality

A belongs_to relation can be typed BelongsTo<Entity> (required) or BelongsTo<Option<Entity>> (optional), encoding the foreign-key cardinality in the type and paired with the write-side ActiveBelongsTo. The macro validates the type against the nullability of the from columns at compile time. BelongsTo is the recommended type for belongs_to; the legacy HasOne<Entity> field type remains supported for backward compatibility. (SeaQL/sea-orm#3118)

Strongly-typed columns

Filter with the typed COLUMN constant for compile-time type safety, alongside the existing Column enum.

</tr></table> 

... (truncated)

Changelog

Sourced from sea-orm-migration's changelog.

2.0.0 - 2026-07-19

Release Candidates

  • 2.0.0-rc.43BelongsTo relation type (opt-in, compile-time FK cardinality), CLI generation-option errors, has_related Condition::any() & PG enum-array codegen fixes
  • 2.0.0-rc.42 — typed value arrays, HasOne replace/delete, ActiveHasOne/ActiveHasMany rename, codegen ColumnType fixes
  • 2.0.0-rc.41SelectFourMany, update_without_returning, cargo binstall sea-orm-cli, junction ActiveModelBehavior & schema-sync PG-schema fixes
  • 2.0.0-rc.40 - Restore pgvector binding with SQLx 0.9
  • 2.0.0-rc.39 - SeaQuery 1.0, SQLx 0.9, async transaction helpers
  • 2.0.0-rc.38find_both_related, set_ne, pool options, schema sync fixes
  • 2.0.0-rc.37 — ER Diagram Generation
  • 2.0.0-rc.36 — Per-migration transaction control
  • 2.0.0-rc.35 — SQLite transaction modes, DeriveIntoActiveModel extensions, Decimal64/Bytes, schema sync fix
  • 2.0.0-rc.34 — Arrow/Parquet support, try_from_u64 for DeriveValueType
  • 2.0.0-rc.32MigratorTrait with self, PostgreSQL application_name
  • 2.0.0-rc.31ne_all, typed TextUuid, COUNT overflow fix
  • 2.0.0-rc.30 — Maintenance release, sea-query bump
  • 2.0.0-rc.29 — Tracing spans, UUID-as-TEXT, relation filtering, LEFT JOIN fix
  • 2.0.0-rc.28sqlx-all in migration, set_if_not_equals_and, auto_increment for String/Uuid PKs
  • 2.0.0-rc.27DeriveValueType implements NotU8 for PostgreSQL arrays
  • 2.0.0-rc.26postgres-use-serial-pk feature for legacy serial PKs
  • 2.0.0-rc.25 — Value system restoration, sea-query bump
  • 2.0.0-rc.24sea-query bump to rc.27
  • 2.0.0-rc.23DeriveValueType implements IntoActiveValue, remove NotU8
  • 2.0.0-rc.22DatabaseExecutor unified type, value array refactor
  • 2.0.0-rc.21 — Rusqlite / sea-orm-sync crate, exists on PaginatorTrait
  • 2.0.0-rc.20 — Stringy newtypes, M2M self-ref, nullable columns, bug fixes

New Features

  • Split belongs_to from has_one with a new BelongsTo relation type SeaQL/sea-orm#3118

    A belongs_to relation can now be typed BelongsTo<Entity> (required) or BelongsTo<Option<Entity>> (optional), encoding the foreign-key cardinality in the type, paired with the write-side companion ActiveBelongsTo. BelongsTo is the recommended type for belongs_to; the legacy HasOne<Entity> field type remains supported for backward compatibility.

  • Role Based Access Control SeaQL/sea-orm#2683

    1. a hierarchical RBAC engine that is table scoped
      • a user has 1 (and only 1) role
      • a role has a set of permissions on a set of resources
        • permissions here are CRUD operations and resources are tables
        • but the engine is generic so can be used for other things
      • roles have hierarchy, and so can inherit permissions
      • there is a wildcard * to grant all permissions or resources
      • individual users can have rules override
    2. a set of Entities to load / store the access control rules to / from database
    3. a query auditor that dissect queries for necessary permissions (implemented in SeaQuery)

... (truncated)

Commits
  • fd3d3de Reformat example manifests with taplo after 2.0.0 bump
  • 3acffad Add 2.0.0 release notes
  • 4138b53 Finalize changelog for 2.0.0
  • 044d462 Bump sea-orm-sync sea-orm-macros dependency to ~2.0.0
  • b1b0c4f update examples
  • 1012307 2.0.0
  • 519b50c Align sea-orm-cli sea-schema dependency to 0.18.1
  • 4500c3b Move count() to CountTrait (#3097)
  • d83f639 Drop --fail-on-no-commits from sea-orm-cli release workflow
  • 539857c Add changelog for 2.0.0-rc.43
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [sea-orm-migration](https://github.com/SeaQL/sea-orm) to permit the latest version.
- [Release notes](https://github.com/SeaQL/sea-orm/releases)
- [Changelog](https://github.com/SeaQL/sea-orm/blob/master/CHANGELOG.md)
- [Commits](SeaQL/sea-orm@1.0.0...2.0.0)

---
updated-dependencies:
- dependency-name: sea-orm-migration
  dependency-version: 2.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Jul 31, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jul 31, 2026

Copy link
Copy Markdown
Author

Looks like sea-orm-migration is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Jul 31, 2026
@dependabot
dependabot Bot deleted the dependabot/cargo/sea-orm-migration-2 branch July 31, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants