Skip to content

chore(deps): bump sea-orm-migration from 1.1.20 to 2.0.1 in /src/backend - #2411

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

chore(deps): bump sea-orm-migration from 1.1.20 to 2.0.1 in /src/backend#2411
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/src/backend/sea-orm-migration-2.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 10, 2026

Copy link
Copy Markdown
Contributor

Bumps sea-orm-migration from 1.1.20 to 2.0.1.

Release notes

Sourced from sea-orm-migration's releases.

sea-orm-cli@2.0.1

Tag seaography example sea-orm version for bump.sh; tolerate taplo padding

2.0.1

SeaORM 2.0.1

Enhancements

  • Add set_page to Paginator to set the current page SeaQL/sea-orm#2963
  • Add as_option / into_option to ActiveValue<Option<V>>, flattening the outer active-value state and the inner option SeaQL/sea-orm#3155
  • Add set_unset and friends to ActiveValue: set the value only when currently NotSet SeaQL/sea-orm#3083
  • Add is_set_and / is_unchanged_and to ActiveValue SeaQL/sea-orm#3125
  • Add ConnectOptions::test_before_acquire_if_idle_for(Duration) — ping a pooled connection before it is handed out only once it has been idle for at least the given duration, instead of on every acquire; setting it disables test_before_acquire. Also map_sqlx_postgres_before_acquire / map_sqlx_mysql_before_acquire / map_sqlx_sqlite_before_acquire to install a per-backend SQLx before_acquire callback (composes with the idle-ping shorthand: idle-ping first, then the callback), plus the corresponding getters SeaQL/sea-orm#3143
  • Add MigratorTrait::get_pending_migrations_read_only / get_applied_migrations_read_only / get_migration_with_status_read_only (and the with-self equivalents) — query migration status without running CREATE TABLE, so a database user without DDL privileges can check pending migrations; if the migration table does not exist, all migrations are reported as pending SeaQL/sea-orm#3144

Bug Fixes

  • Require TransactionTrait::Transaction to be a fixed point, fixing nested-transaction recursion (E0275 / future_not_send) in #[sea_orm::model] generated save methods SeaQL/sea-orm#3153

    Compatibility note: if you implement TransactionTrait yourself, Self must be Sync, and your Transaction type must be Send and its own transaction type (Transaction::Transaction = Transaction). Implementations delegating to DatabaseConnection / DatabaseTransaction, and virtually all #[async_trait] implementations, already satisfy this. Callers are unaffected.

Upgrades

  • Loco examples upgraded to loco-rs 1.0 (which runs on SeaORM 2.0 stable) SeaQL/sea-orm#3152

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,
</tr></table> 

... (truncated)

Changelog

Sourced from sea-orm-migration's changelog.

2.0.1 - 2026-08-02

ActiveValue helpers (set_unset, is_set_and, as_option), Paginator::set_page, before_acquire pool hooks, read-only migration status queries, nested-transaction recursion fix

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

... (truncated)

Commits
  • b194ee0 Tag seaography example sea-orm version for bump.sh; tolerate taplo padding
  • 97bd8c3 Add TransactionTrait compatibility note to 2.0.1 changelog
  • 6fcfad8 Regenerate sea-orm-sync (ActiveValue helpers, before_acquire)
  • 3afce28 update examples
  • 7083a69 2.0.1
  • 9b059e6 Add changelog for 2.0.1
  • 675b647 chore: add set_page to paginator (#2963)
  • 6aba065 Add as_option / into_option to ActiveValue<Option> (#3155)
  • 205ebce set_unset & friends for ActiveValue (#3083)
  • f16936d is_set_and + is_unchanged_and (#3125)
  • Additional commits viewable in compare view

Dependabot compatibility score

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)

Bumps [sea-orm-migration](https://github.com/SeaQL/sea-orm) from 1.1.20 to 2.0.1.
- [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.1.20...2.0.1)

---
updated-dependencies:
- dependency-name: sea-orm-migration
  dependency-version: 2.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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 Aug 10, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner August 10, 2026 21:11
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Aug 10, 2026
@cyberantonz

Copy link
Copy Markdown
Contributor

Superseded by #2422, which consolidates both the sea-orm and sea-orm-migration 2.0 bumps into one change and migrates the backend to the SeaORM 2.0 API (a split bump leaves two sea_orm versions in the graph and fails to compile).

@dependabot @github

dependabot Bot commented on behalf of github Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/cargo/src/backend/sea-orm-migration-2.0.1 branch August 11, 2026 06:47
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.

1 participant