From 18796f22fdbb32a6432e1bce92e36ceb9afb42c8 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 26 Jan 2017 14:29:40 -0600 Subject: [PATCH] wording --- migrations.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/migrations.md b/migrations.md index 7a4d3151a9a..b01eb6f2ef2 100644 --- a/migrations.md +++ b/migrations.md @@ -359,9 +359,9 @@ Command | Description `$table->unique(['first', 'last']);` | Add a composite unique index. `$table->index('state');` | Add a basic index. -#### Index Lengths & MySQL/MariaDB +#### Index Lengths & MySQL / MariaDB -Laravel uses the `utf8mb4` character set by default, which includes support for storing "emojis" in the database. If you are running a version of MySQL older than the 5.7.7 release or a version of MariaDB older than the 10.2.2 release, you may need to manually configure the default string length generated by migrations in order for MySQL to create indexes for them. You may configure this by calling the `Schema::defaultStringLength` method within your `AppServiceProvider`: +Laravel uses the `utf8mb4` character set by default, which includes support for storing "emojis" in the database. If you are running a version of MySQL older than the 5.7.7 release or MariaDB older than the 10.2.2 release, you may need to manually configure the default string length generated by migrations in order for MySQL to create indexes for them. You may configure this by calling the `Schema::defaultStringLength` method within your `AppServiceProvider`: use Illuminate\Support\Facades\Schema; @@ -375,7 +375,7 @@ Laravel uses the `utf8mb4` character set by default, which includes support for Schema::defaultStringLength(191); } -Another solution for this problem is using the `innodb_large_prefix` option, check your RDBMS manual for instructions on how to properly enable it. +Alternatively, you may enable the `innodb_large_prefix` option for your database. Refer to your database's documentation for instructions on how to properly enable this option. ### Dropping Indexes