@@ -107,23 +107,31 @@ that wish to use them. The tools primarily provide access to the same methods th
107107migrate
108108=======
109109
110- Migrates a database group with all available migrations::
110+ Migrates a database group with all available migrations:
111111
112- > php spark migrate
112+ .. code-block :: console
113+
114+ php spark migrate
113115
114116 You can use (migrate) with the following options:
115117
116118- ``-g `` - to chose database group, otherwise default database group will be used.
117119- ``-n `` - to choose namespace, otherwise (App) namespace will be used.
118120- ``--all `` - to migrate all namespaces to the latest migration.
119121
120- This example will migrate ``Acme\Blog `` namespace with any new migrations on the test database group::
122+ This example will migrate ``Acme\Blog `` namespace with any new migrations on the test database group:
123+
124+ For Unix:
125+
126+ .. code-block :: console
127+
128+ php spark migrate -g test -n Acme\\Blog
121129
122- For Unix:
123- > php spark migrate -g test -n Acme\\Blog
130+ For Windows:
124131
125- For Windows:
126- > php spark migrate -g test -n Acme\Blog
132+ .. code-block :: console
133+
134+ php spark migrate -g test -n Acme\Blog
127135
128136 When using the ``--all `` option, it will scan through all namespaces attempting to find any migrations that have
129137not been run. These will all be collected and then sorted as a group by date created. This should help
@@ -132,9 +140,11 @@ to minimize any potential conflicts between the main application and any modules
132140rollback
133141========
134142
135- Rolls back all migrations, taking the database group to a blank slate, effectively migration 0::
143+ Rolls back all migrations, taking the database group to a blank slate, effectively migration 0:
144+
145+ .. code-block :: console
136146
137- > php spark migrate:rollback
147+ php spark migrate:rollback
138148
139149 You can use (rollback) with the following options:
140150
@@ -145,9 +155,11 @@ You can use (rollback) with the following options:
145155refresh
146156=======
147157
148- Refreshes the database state by first rolling back all migrations, and then migrating all::
158+ Refreshes the database state by first rolling back all migrations, and then migrating all:
149159
150- > php spark migrate:refresh
160+ .. code-block :: console
161+
162+ php spark migrate:refresh
151163
152164 You can use (refresh) with the following options:
153165
@@ -159,9 +171,11 @@ You can use (refresh) with the following options:
159171status
160172======
161173
162- Displays a list of all migrations and the date and time they ran, or '--' if they have not been run::
174+ Displays a list of all migrations and the date and time they ran, or '--' if they have not been run:
175+
176+ .. code-block :: console
163177
164- > php spark migrate:status
178+ php spark migrate:status
165179
166180 ...
167181
@@ -184,9 +198,9 @@ Creates a skeleton migration file in **app/Database/Migrations**.
184198It automatically prepends the current timestamp. The class name it
185199creates is the Pascal case version of the filename.
186200
187- ::
201+ .. code-block :: console
188202
189- > php spark make:migration <class> [options]
203+ php spark make:migration <class> [options]
190204
191205 You can use (``make:migration ``) with the following options:
192206
0 commit comments