Page MenuHomePhorge

No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None
diff --git a/src/database/migrations/2021_03_25_144555_create_auth_attempts_table.php b/src/database/migrations/2021_03_25_144555_create_auth_attempts_table.php
index 009fa335..d42c5e75 100644
--- a/src/database/migrations/2021_03_25_144555_create_auth_attempts_table.php
+++ b/src/database/migrations/2021_03_25_144555_create_auth_attempts_table.php
@@ -1,46 +1,50 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
// phpcs:ignore
class CreateAuthAttemptsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
- Schema::create('auth_attempts', function (Blueprint $table) {
- $table->uuid('id')->primary();
- $table->bigInteger('user_id');
- $table->string('ip', 36);
- $table->string('status', 36)->default('NEW');
- $table->string('reason', 36)->nullable();
- $table->datetime('expires_at')->nullable();
- $table->datetime('last_seen')->nullable();
- $table->timestamps();
+ Schema::create(
+ 'auth_attempts',
+ function (Blueprint $table) {
+ $table->string('id', 36);
+ $table->bigInteger('user_id');
+ $table->string('ip', 36);
+ $table->string('status', 36)->default('NEW');
+ $table->string('reason', 36)->nullable();
+ $table->datetime('expires_at')->nullable();
+ $table->datetime('last_seen')->nullable();
+ $table->timestamps();
- $table->index('updated_at');
- $table->unique(['user_id', 'ip']);
+ $table->primary('id');
+ $table->index('updated_at');
+ $table->unique(['user_id', 'ip']);
- $table->foreign('user_id')
- ->references('id')->on('users')
- ->onDelete('cascade')
- ->onUpdate('cascade');
- });
+ $table->foreign('user_id')
+ ->references('id')->on('users')
+ ->onDelete('cascade')
+ ->onUpdate('cascade');
+ }
+ );
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('auth_attempts');
}
}

File Metadata

Mime Type
text/x-diff
Expires
Sat, Apr 18, 8:20 AM (59 m, 15 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
435540
Default Alt Text
(2 KB)

Event Timeline