From 180420843da8b66bf1bdeffa3b49d05f3b7b9ec3 Mon Sep 17 00:00:00 2001 From: long2ice Date: Mon, 26 Jul 2021 15:27:49 +0800 Subject: [PATCH] update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index b7d1aaf..53d672e 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,17 @@ tortoise_orm = { You only need to specify `aerich.models` in one app, and must specify `--app` when running `aerich migrate` and so on. +## Restore `aerich` workflow + +In some cases, such as broken changes from upgrade of `aerich`, you can't run `aerich migrate` or `aerich upgrade`, you +can make the following steps: + +1. drop `aerich` table. +2. delete `migrations/{app}` directory. +3. rerun `aerich init-db`. + +Note that these actions is safe, also you can do that to reset your migrations if your migration files is too many. + ## License This project is licensed under the