File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,10 @@ following changes to perform the schema changes on your MongoDB database:
71
71
Make sure you set ``DB_CONNECTION=mongodb`` in your ``.env`` configuration
72
72
file so that PHP artisan performs the migration on the correct database.
73
73
74
- The following example migration creates a collection and index when you run
75
- the migration and drops them when you roll back the migration:
74
+ The following example migration class contains the following methods:
75
+
76
+ - ``up()``, which creates a collection and an index when you run the migration
77
+ - ``down()``, which drops the collection and all the indexes on it when you roll back the migration
76
78
77
79
.. literalinclude:: /includes/schema-builder/astronauts_migration.php
78
80
:dedent:
You can’t perform that action at this time.
0 commit comments