Skip to content

Commit 897980b

Browse files
authored
Merge pull request #7350 from kenjis/fix-migrate-rollback-relative
fix: migrate:rollback -b negative number
2 parents f350c55 + a152ea7 commit 897980b

2 files changed

Lines changed: 6 additions & 6 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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ You can use (migrate) with the following options:
124124

125125
- ``-g`` - to chose database group, otherwise default database group will be used.
126126
- ``-n`` - to choose namespace, otherwise (App) namespace will be used.
127-
- ``--all`` - to migrate all namespaces to the latest migration
127+
- ``--all`` - to migrate all namespaces to the latest migration.
128128

129129
This example will migrate ``Acme\Blog`` namespace with any new migrations on the test database group::
130130

@@ -144,8 +144,8 @@ 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
148-
- ``-f`` - to force a bypass confirmation question, it is only asked in a production environment
147+
- ``-b`` - to choose a batch: natural numbers specify the batch.
148+
- ``-f`` - to force a bypass confirmation question, it is only asked in a production environment.
149149

150150
refresh
151151
=======
@@ -158,8 +158,8 @@ You can use (refresh) with the following options:
158158

159159
- ``-g`` - to choose database group, otherwise default database group will be used.
160160
- ``-n`` - to choose namespace, otherwise (App) namespace will be used.
161-
- ``--all`` - to refresh all namespaces
162-
- ``-f`` - to force a bypass confirmation question, it is only asked in a production environment
161+
- ``--all`` - to refresh all namespaces.
162+
- ``-f`` - to force a bypass confirmation question, it is only asked in a production environment.
163163

164164
status
165165
======

0 commit comments

Comments
 (0)