Skip to content

Commit 3595257

Browse files
committed
update README.md
1 parent 7d3eb2e commit 3595257

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ You can use `aerich` out of cli by use `Command` class.
231231
from aerich import Command
232232

233233
command = Command(tortoise_config=config, app='models')
234+
await command.init()
234235
await command.migrate('test')
235236
```
236237

aerich/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Command:
2727
def __init__(
2828
self,
2929
tortoise_config: dict,
30-
app: str,
30+
app: str = "models",
3131
location: str = "./migrations",
3232
src_folder: str = ".",
3333
):

0 commit comments

Comments
 (0)