mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 03:38:06 +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()
|
public function boot()
|
||||||
{
|
{
|
||||||
Blade::withoutComponentTags();
|
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);
|
Schema::defaultStringLength(191);
|
||||||
|
|
||||||
JsonResource::withoutWrapping();
|
JsonResource::withoutWrapping();
|
||||||
|
|
||||||
$this->commands([
|
$this->commands([
|
||||||
|
@ -16,7 +16,9 @@ class CreateWebAuthnTables extends Migration
|
|||||||
{
|
{
|
||||||
Schema::create('web_authn_credentials', function (Blueprint $table) {
|
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.
|
// Change accordingly for your users table if you need to.
|
||||||
$table->unsignedBigInteger('user_id');
|
$table->unsignedBigInteger('user_id');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user