Skip to content

Commit 1804208

Browse files
committed
update README.md
1 parent 58f66b9 commit 1804208

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,17 @@ tortoise_orm = {
212212

213213
You only need to specify `aerich.models` in one app, and must specify `--app` when running `aerich migrate` and so on.
214214

215+
## Restore `aerich` workflow
216+
217+
In some cases, such as broken changes from upgrade of `aerich`, you can't run `aerich migrate` or `aerich upgrade`, you
218+
can make the following steps:
219+
220+
1. drop `aerich` table.
221+
2. delete `migrations/{app}` directory.
222+
3. rerun `aerich init-db`.
223+
224+
Note that these actions is safe, also you can do that to reset your migrations if your migration files is too many.
225+
215226
## License
216227

217228
This project is licensed under the

0 commit comments

Comments
 (0)