We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d3eb2e commit 3595257Copy full SHA for 3595257
README.md
@@ -231,6 +231,7 @@ You can use `aerich` out of cli by use `Command` class.
231
from aerich import Command
232
233
command = Command(tortoise_config=config, app='models')
234
+await command.init()
235
await command.migrate('test')
236
```
237
aerich/__init__.py
@@ -27,7 +27,7 @@ class Command:
27
def __init__(
28
self,
29
tortoise_config: dict,
30
- app: str,
+ app: str = "models",
31
location: str = "./migrations",
32
src_folder: str = ".",
33
):
0 commit comments