Skip to content

Commit

Permalink
Merge pull request #915 from marwan-alloreview/fix/migration-doc
Browse files Browse the repository at this point in the history
Update migrations.md
  • Loading branch information
adeelsohailahmed authored Aug 27, 2024
2 parents ecd3397 + 4814fae commit ca585b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorial/migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Each one contains instructions to roll migration respectively forward and backwa
To roll one forward migration, run:

```shell
beanie migrate -uri 'mongodb+srv://user:pass@host/db' -p relative/path/to/migrations/directory/ --distance 1
beanie migrate -uri 'mongodb+srv://user:pass@host' -db db -p relative/path/to/migrations/directory/ --distance 1
```

To roll all forward migrations, run:
Expand All @@ -33,13 +33,13 @@ beanie migrate -uri 'mongodb://user:pass@host' -db db -p relative/path/to/migrat
To roll one backward migration, run:

```shell
beanie migrate -uri 'mongodb+srv://user:pass@host/db' -p relative/path/to/migrations/directory/ --distance 1 --backward
beanie migrate -uri 'mongodb+srv://user:pass@host' -db db -p relative/path/to/migrations/directory/ --distance 1 --backward
```

To roll all backward migrations, run:

```shell
beanie migrate -uri 'mongodb+srv://user:pass@host/db' -p relative/path/to/migrations/directory/ --backward
beanie migrate -uri 'mongodb+srv://user:pass@host' -db db -p relative/path/to/migrations/directory/ --backward
```

To show the help message with all the parameters and descriptions, run:
Expand Down

0 comments on commit ca585b1

Please sign in to comment.