Impossible to say without knowing what the string lengths are
Laravel Composite Index Issue
In laravel 5.5 when I try to create a composite index of 3 columns it gives me following error while it works fine when I create composite index for two columns.
Syntax error or access violation: 1071 Specified key was t oo long; max key length is 1000 bytes
I am adding index using index method.
$table->index(['column_1','column_2','column_3']);
I have also tried this.
$table->index(['column_1','column_2','column_3'],"index_title");
column1 is int type and column_2 and column_3 are varchar
Please note that I have already added Schema::defaultStringLength(191); in AppServiceProvider.php
`public function boot(Request $request) { Schema::defaultStringLength(191);
}`
Please or to participate in this conversation.