Skip to content

Commit 54186a9

Browse files
committed
fix: remove incorrect description
We cannot specify negative number as an option value on CLI.
1 parent f32eaa5 commit 54186a9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

system/Commands/Database/MigrateRollback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class MigrateRollback extends BaseCommand
5757
* @var array
5858
*/
5959
protected $options = [
60-
'-b' => 'Specify a batch to roll back to; e.g. "3" to return to batch #3 or "-2" to roll back twice',
60+
'-b' => 'Specify a batch to roll back to; e.g. "3" to return to batch #3',
6161
'-g' => 'Set database group',
6262
'-f' => 'Force command - this option allows you to bypass the confirmation question when running this command in a production environment',
6363
];

user_guide_src/source/dbmgmt/migration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Rolls back all migrations, taking the database group to a blank slate, effective
144144
You can use (rollback) with the following options:
145145

146146
- ``-g`` - to choose database group, otherwise default database group will be used.
147-
- ``-b`` - to choose a batch: natural numbers specify the batch, negatives indicate a relative batch
147+
- ``-b`` - to choose a batch: natural numbers specify the batch.
148148
- ``-f`` - to force a bypass confirmation question, it is only asked in a production environment
149149

150150
refresh

0 commit comments

Comments
 (0)