Skip to content

Commit

Permalink
PRR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Cho committed Mar 19, 2024
1 parent 26071ac commit ac4504c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions docs/eloquent-models/schema-builder.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Schema Builder
:values: tutorial

.. meta::
:keywords: php framework, odm, code example, schema facade, php artisan, eloquent, blueprint, artisan, migrate
:keywords: php framework, odm, code example, schema facade, artisan, eloquent, blueprint, artisan, migrate

.. contents:: On this page
:local:
Expand Down Expand Up @@ -68,7 +68,7 @@ following changes to perform the schema changes on your MongoDB database:
.. tip::

If your default database connection is set to anything other than your
MongoDB database, update the following items so that PHP artisan performs
MongoDB database, update the following items so that Artisan performs
the migration on the correct database:

- Specify ``mongodb`` in the ``$connection`` field of your migration class
Expand All @@ -87,18 +87,18 @@ The following example migration class contains the following methods:
Run or Roll Back a Migration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To run the database migration from a class file, run the following PHP artisan
To run the database migration from a class file, run the following Artisan
command after replacing the placeholder:

.. code-block:: bash

php artisan migrate --path=<path to your migration class file>

This artisan command runs the ``up()`` function in the class file to create
This Artisan command runs the ``up()`` function in the class file to create
the collection and index in the database specified in the ``config/database.php``
file.

To roll back the migration, run the following PHP artisan command after
To roll back the migration, run the following Artisan command after
replacing the placeholder:

.. code-block:: bash
Expand Down Expand Up @@ -140,7 +140,7 @@ the number of documents needed to retrieve query results. Certain indexes, such
as geospatial indexes, extend how you can query the data.

To improve query performance by using an index, make sure the index covers
the query. To learn more about indexes and query optimization, see the
the query. To learn more about indexes and query optimization, see the
following {+server-docs-name+} entries:

- :manual:`Indexes </indexes>`
Expand Down
4 changes: 2 additions & 2 deletions docs/includes/schema-builder/flights_migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

public function up(): void
{
// begin create index
// begin create index
Schema::create('flights', function (Blueprint $collection) {
$collection->index('mission_type');
$collection->index(['launch_location' => 1, 'launch_date' => -1]);
$collection->unique('mission_id', options: ['name' => 'unique_mission_id_idx']);
});
// end create index
// end create index
}

public function down(): void
Expand Down

0 comments on commit ac4504c

Please sign in to comment.