You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -194,13 +188,17 @@ creates is the Pascal case version of the filename.
194
188
195
189
> php spark make:migration <class> [options]
196
190
197
-
You can use (make:migration) with the following options:
191
+
You can use (``make:migration``) with the following options:
192
+
193
+
- ``--namespace`` - Set root namespace. Default: ``APP_NAMESPACE``.
194
+
- ``--suffix`` - Append the component title to the class name.
195
+
196
+
The following options are also available to generate the migration file for
197
+
database sessions:
198
198
199
199
- ``--session`` - Generates the migration file for database sessions.
200
200
- ``--table`` - Table name to use for database sessions. Default: ``ci_sessions``.
201
201
- ``--dbgroup`` - Database group to use for database sessions. Default: ``default``.
202
-
- ``--namespace`` - Set root namespace. Default: ``APP_NAMESPACE``.
203
-
- ``--suffix`` - Append the component title to the class name.
204
202
205
203
*********************
206
204
Migration Preferences
@@ -229,7 +227,7 @@ Class Reference
229
227
:returns: An array of migration files
230
228
:rtype: array
231
229
232
-
An array of migration filenames are returned that are found in the **path** property.
230
+
An array of migration filenames are returned that are found in the ``path`` property.
233
231
234
232
.. php:method:: latest($group)
235
233
@@ -259,7 +257,7 @@ Class Reference
259
257
:returns: ``true`` on success, ``false`` on failure
260
258
:rtype: bool
261
259
262
-
This forces a single file to migrate regardless of order or batches. Method "up" or "down" is detected based on whether it has already been migrated.
260
+
This forces a single file to migrate regardless of order or batches. Method ``up()`` or ``down()`` is detected based on whether it has already been migrated.
263
261
264
262
.. note:: This method is recommended only for testing and could cause data consistency issues.
0 commit comments