From 4814fae35c3d0515b4dc79b5df91c43275faecfd Mon Sep 17 00:00:00 2001 From: marwan-alloreview <104774269+marwan-alloreview@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:45:37 +0200 Subject: [PATCH] update migrations.md --- docs/tutorial/migrations.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorial/migrations.md b/docs/tutorial/migrations.md index 1085cf28..0e98b87b 100644 --- a/docs/tutorial/migrations.md +++ b/docs/tutorial/migrations.md @@ -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: @@ -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: