Skip to content

Commit

Permalink
added note in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ar0ne committed Dec 26, 2023
1 parent ad54b5e commit ede53ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ede53ad

Please sign in to comment.