update README

This commit is contained in:
long2ice 2020-10-09 15:34:48 +08:00
parent 48e3ff48a3
commit 86c8382593
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@
- Now there don't need `old_models.py` and it store in database. - Now there don't need `old_models.py` and it store in database.
- Upgrade steps: - Upgrade steps:
1. Upgrade aerich version. 1. Upgrade aerich version.
2. Drop aerich model in db and recreate with new struct. 2. Drop aerich table in database.
3. Delete `migrations/{app}` folder and rerun `aerich init-db`. 3. Delete `migrations/{app}` folder and rerun `aerich init-db`.
4. Update model and `aerich migrate` normally. 4. Update model and `aerich migrate` normally.

View File

@ -10,6 +10,8 @@
Aerich is a database migrations tool for Tortoise-ORM, which like alembic for SQLAlchemy, or Django ORM with it\'s Aerich is a database migrations tool for Tortoise-ORM, which like alembic for SQLAlchemy, or Django ORM with it\'s
own migrations solution. own migrations solution.
**If you upgrade aerich from <= 0.2.5 to >= 0.3.0, see [changelog](https://github.com/tortoise/aerich/blob/dev/CHANGELOG.md) for upgrade steps.**
## Install ## Install
Just install from pypi: Just install from pypi: