#370370th of 403 in Backends, databases and hosting
aerich
Database migration CLI for Tortoise ORM, similar to Alembic
Watch puts aerich on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.aerich is on your watch list. Its new releases and problems show there.
- Stars
- 1.1k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Aug 2026
- Language
- Python
1,078 on 16 May 20261,084 on 28 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Aerich generates and applies schema migrations for Tortoise ORM models. It provides a CLI (init, init-db, migrate, upgrade, downgrade, history, heads, inspectdb) and a Python Command class for running migrations from application code. The README notes that tortoise-orm 1.0.0 and later ships a built-in migration CLI (`python -m tortoise makemigrations`).
Who it is for: Python developers using Tortoise ORM who need schema migrations
Strengths
- Autogenerates migration files from model changes, with an option to write empty ones by hand
- inspectdb generates Tortoise models from existing MySQL, Postgres and SQLite tables
- Supports multiple databases and per-app migration folders via --app and a {app} location
- upgrade and downgrade accept --fake to mark migrations applied without running SQL
Weaknesses
- tortoise-orm 1.0.0 and later has a built-in migration CLI, which may make Aerich redundant
- Works only with Tortoise ORM, not other Python ORMs
- inspectdb cannot infer fields such as IntEnumField and ForeignKeyField
- Imports your Tortoise config on most commands, so the config file must stay simple
What it needs
- no GPU
- Needs tortoise-orm, MySQL, Postgres or SQLite database
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Known problems
Reported, then fixed by a linked change
- Failed to generate migration in SQLite app if JSONField was used with old version ↗ (opens in a new tab)0 reactions · closed 19 Aug 2026Fixed by fix: failed to generate migration in SQLite app if JSONField was used with old version ↗ (opens in a new tab)
- import_py_module assumes module_finder.invalidate_caches() exists, fails under Nuitka loader ↗ (opens in a new tab)0 reactions · closed 10 Feb 2026Fixed by Fix 'nuitka_module_loader' object has no attribute 'invalidate_caches' ↗ (opens in a new tab)
- Migration generates CREATE TABLE statements in wrong dependency order ↗ (opens in a new tab)0 reactions · closed 7 Feb 2026Fixed by Order fk ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Also in Backends, databases and hosting
See all 403| Rank | Project | Score |
|---|---|---|
| #368 | devise_token_authToken-based authentication gem for Rails APIs, built on Devise and OmniAuth | 40 out of 100 |
| #369 | matt-42/lithiumC++ libraries for HTTP servers and SQL database access | 40 out of 100 |
| #371 | neomodelPython object graph mapper for Neo4j with class-based models and a query API | 39 out of 100 |
| #372 | dicedbValkey fork that spills evicted keys to disk via RocksDB | 38 out of 100 |
| #373 | flask-sqlalchemyFlask extension that integrates SQLAlchemy with app config and sessions | 38 out of 100 |