From ede53ade867f5e0a0a3f64c7363ab6decf5bd3c5 Mon Sep 17 00:00:00 2001 From: ar0ne Date: Tue, 26 Dec 2023 23:20:29 +0530 Subject: [PATCH] added note in readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 6a0b79b..5df1db4 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,14 @@ If `aerich` guesses you are renaming a column, it will ask `Rename {old_column} `True` to rename column without column drop, or choose `False` to drop the column then create. Note that the latter may lose data. +If you need to manually write migration, you could generate empty file: + +```shell +> aerich migrate --name add_index --empty + +Success migrate 1_202326122220101229_add_index.py +``` + ### Upgrade to latest version ```shell