diff --git a/modules/backend/database/migrations/2013_10_01_000004_Db_Backend_User_Throttle.php b/modules/backend/database/migrations/2013_10_01_000004_Db_Backend_User_Throttle.php index 6618d8d55..31baf43f8 100644 --- a/modules/backend/database/migrations/2013_10_01_000004_Db_Backend_User_Throttle.php +++ b/modules/backend/database/migrations/2013_10_01_000004_Db_Backend_User_Throttle.php @@ -10,8 +10,8 @@ class DbBackendUserThrottle extends Migration Schema::create('backend_user_throttle', function ($table) { $table->engine = 'InnoDB'; $table->increments('id'); - $table->integer('user_id')->unsigned(); - $table->string('ip_address')->nullable(); + $table->integer('user_id')->unsigned()->nullable()->index(); + $table->string('ip_address')->nullable()->index(); $table->integer('attempts')->default(0); $table->timestamp('last_attempt_at')->nullable(); $table->boolean('is_suspended')->default(0);