pypi / sqlmodel
sqlmodel
What changed in sqlmodel 0.0, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
6 breaking3 deprecations6 new APIs and options1 tooling10 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initsqlmodel 0.026 changes
Breaking changes 6
Support for Python 3.10 was dropped, so applications using SQLModel must use a supported Python version.
Datetime fields now use timezone-aware UTC storage by default, normalize aware values to UTC, and return aware UTC values from database reads. Naive database parameters now raise an error.
Support for sqlmodel-slim is dropped and no more versions will be released; use sqmodel instead.
Python 3.9 is no longer supported.
Support for Pydantic v1 was dropped, so applications using SQLModel must use a supported Pydantic version.
Support for Python 3.8 was dropped.
Deprecations 3
The max_items parameter of Field is deprecated.
The min_items parameter of Field is deprecated.
The sqlmodel-slim package is deprecated and now only depends on sqlmodel.
New APIs and options 6
SQLModel adds direct support for MariaDB, allowing developers to use it as a database.
SQLModel adds direct support for MySQL, allowing developers to use it as a database.
SQLModel adds direct support for PostgreSQL, allowing developers to use it as a database.
NaiveDatetime explicitly selects DateTime(timezone=False), allowing developers to retain naive datetime storage.
The discriminator parameter in Field now accepts the Discriminator type.
A SQLModel Agent Library Skill is available to install with this command.
Tooling 1
Provides an official skill to help coding agents use features and recommended patterns for the installed SQLModel version.
Fixes and other changes 10
Adds support for Python 3.15 and 3.15t.
SQLModel adds support for SQLAlchemy 2.1.
Fixes timedelta arithmetic with UTC datetime fields.
Fixes SQLAlchemy type handling in Field.
The type of
__sqlmodel_relationships__is fixed.Fixes the type annotation to avoid explicitly returning Any.
Fixes the return type annotation for
tuple_.Fixes support for Annotated fields when using Pydantic 2.12 or later.
Fixes alias support for Pydantic v2.
Fixes RuntimeError: dictionary changed size during iteration in sqlmodel_update().