mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-22 21:30:56 +01:00
Fix possible MySQL index length issue when using MyISAM engine in WAMP
This commit is contained in:
parent
420fa7dd88
commit
0999ad5a24
@ -31,7 +31,11 @@ public function register()
|
||||
public function boot()
|
||||
{
|
||||
Blade::withoutComponentTags();
|
||||
|
||||
// Limited to 191 to prevent index length issue with MyISAM and utf8mb4_unicode_ci
|
||||
// when using WAMP (WAMP uses MyISAM as default engine in place of INNOdb)
|
||||
Schema::defaultStringLength(191);
|
||||
|
||||
JsonResource::withoutWrapping();
|
||||
|
||||
$this->commands([
|
||||
|
@ -16,7 +16,9 @@ public function up()
|
||||
{
|
||||
Schema::create('web_authn_credentials', function (Blueprint $table) {
|
||||
|
||||
$table->string('id', 255);
|
||||
// Limited to 191 to prevent index length issue with MyISAM and utf8mb4_unicode_ci
|
||||
// when using WAMP (WAMP uses MyISAM as default engine in place of INNOdb)
|
||||
$table->string('id', 191);
|
||||
|
||||
// Change accordingly for your users table if you need to.
|
||||
$table->unsignedBigInteger('user_id');
|
||||
|
Loading…
Reference in New Issue
Block a user