mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-19 19:28:08 +02: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 @@ class AppServiceProvider extends ServiceProvider
|
||||
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 @@ class CreateWebAuthnTables extends Migration
|
||||
{
|
||||
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…
x
Reference in New Issue
Block a user