Add Rename support

This commit is contained in:
long2ice
2020-09-25 17:48:32 +08:00
parent af4d4be19a
commit 141d7205bf
11 changed files with 238 additions and 192 deletions

View File

@@ -111,6 +111,8 @@ Success migrate 1_202029051520102929_drop_column.json
Format of migrate filename is
`{version_num}_{datetime}_{name|update}.json`
And if `aerich` guess you are renaming a column, it will ask `Rename {old_column} to {new_column} [True]`, you can choice `True` to choice rename column without column drop, or choice `False` to drop column then create.
### Upgrade to latest version
```shell