Edit CLI docs

This commit is contained in:
Billy Chan 2022-07-14 17:45:36 +08:00
parent 60bf6da8dd
commit 0a55d3ea67
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7
2 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,7 @@ cargo run -- generate entity -u postgres://sea:sea@localhost/bakery -s public -o
``` ```
- Generate a new migration file - Generate a new migration file
```sh ```sh
cargo run -- migrate generate --migration-name NAME_OF_MIGRATION cargo run -- migrate generate MIGRATION_NAME
``` ```
- Apply all pending migrations - Apply all pending migrations
```sh ```sh

View File

@ -1,5 +1,9 @@
# Running Migrator CLI # Running Migrator CLI
- Generate a new migration file
```sh
cargo run -- migrate generate MIGRATION_NAME
```
- Apply all pending migrations - Apply all pending migrations
```sh ```sh
cargo run cargo run