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
{{ message }}
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.
My PHP version 7.3.21, MySQL version 5.7.31, Laravel version 8.7.1
In AppServiceProvider.php use Illuminate\Support\Facades\Schema; public function boot() { // Schema::defaultStringLength(191); }
DB collate: utf8-general_ci
My PHP version 7.3.21, MySQL version 5.7.31, Laravel version 8.7.1
In AppServiceProvider.php
use Illuminate\Support\Facades\Schema; public function boot() { // Schema::defaultStringLength(191); }
DB collate: utf8-general_ci
database.php 'mysql' => [ 'driver' => 'mysql', 'url' => env('DATABASE_URL'), 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'unix_socket' => env('DB_SOCKET', ''), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, 'engine' => null, 'options' => extension_loaded('pdo_mysql') ? array_filter([ PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), ]) : [], ],
Migration error:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table
commentsadd index
comments_commentable_id_commentable_type_index(
commentable_id,
commentable_type))
The text was updated successfully, but these errors were encountered: