Skip to content

Commit 114e722

Browse files
authored
Removed note on old versions of MariaDB & MySQL (#8678)
1 parent eda7e39 commit 114e722

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

migrations.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,23 +1146,6 @@ Command | Description
11461146
`$table->fullText('body')->language('english');` | Adds a full text index of the specified language (PostgreSQL).
11471147
`$table->spatialIndex('location');` | Adds a spatial index (except SQLite).
11481148

1149-
<a name="index-lengths-mysql-mariadb"></a>
1150-
#### Index Lengths & MySQL / MariaDB
1151-
1152-
By default, Laravel uses the `utf8mb4` character set. 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 the default string length by calling the `Schema::defaultStringLength` method within the `boot` method of your `App\Providers\AppServiceProvider` class:
1153-
1154-
use Illuminate\Support\Facades\Schema;
1155-
1156-
/**
1157-
* Bootstrap any application services.
1158-
*/
1159-
public function boot(): void
1160-
{
1161-
Schema::defaultStringLength(191);
1162-
}
1163-
1164-
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.
1165-
11661149
<a name="renaming-indexes"></a>
11671150
### Renaming Indexes
11681151

0 commit comments

Comments
 (0)