mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Fixes https://github.com/octobercms/october/issues/364 - Add indexes
This commit is contained in:
parent
22daf299f0
commit
ad26acef29
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user