Support rename field

This commit is contained in:
long2ice
2021-02-03 17:56:30 +08:00
parent e3a14a2f60
commit f1f0074255
5 changed files with 95 additions and 16 deletions

View File

@@ -111,7 +111,7 @@ Format of migrate filename is
`{version_num}_{datetime}_{name|update}.sql`.
And if `aerich` guess you are renaming a column, it will ask `Rename {old_column} to {new_column} [True]`, you can
choice `True` to rename column without column drop, or choice `False` to drop column then create.
choice `True` to rename column without column drop, or choice `False` to drop column then create, note that the after maybe lose data.
### Upgrade to latest version