Closed francoism90 closed 7 years ago
@francoism90 I think we should re-open this, there are lots of situations where we don't have access to this kind of stuff, aka Aurora.
So just truncate the tag after a certain number of characters?
@acidjazz Don't think this is needed, it should work for most (MySQL) users. :) @rtconner It has nothing to do with creating tags; you're unable to create the table.
Well I think we should at least add to the documentation that if this comes up they'll need to add
use Illuminate\Support\Facades\Schema;
...
public function boot()
{
Schema::defaultStringLength(191);
}
to their AppServiceProvider.php
EDIT: Solved!
Edit your
/etc/mysql/my.cnf
and add the following:With Laravel 5.4 the database scheme utf8mb4 is used by default, however it may not be enabled on the current MariaDB setup.
See http://stackoverflow.com/questions/23786359/laravel-migration-unique-key-is-too-long-even-if-specified for all needed steps.