From ad26acef29c696ee200cb121ed0454c840413757 Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Sat, 1 Nov 2014 18:15:45 +1100 Subject: [PATCH] Fixes https://github.com/octobercms/october/issues/364 - Add indexes --- .../migrations/2013_10_01_000004_Db_Backend_User_Throttle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);