Skip to content

Commit

Permalink
Migration problem fix
Browse files Browse the repository at this point in the history
  • Loading branch information
István committed Feb 25, 2021
1 parent df9f1cf commit d6b25a4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateUser2faTable extends Migration
class FixedCreateUser2faTable extends Migration
{
/**
* Run the migrations.
Expand All @@ -14,8 +14,8 @@ class CreateUser2faTable extends Migration
public function up()
{
Schema::create('user_2fa', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('user_id');
$table->bigIncrements('id');
$table->bigInteger('user_id')->unsigned();
$table->boolean('google2fa_enable')->default(false);
$table->string('google2fa_secret')->nullable();
$table->text('recovery')->nullable();
Expand All @@ -36,4 +36,4 @@ public function down()
{
Schema::dropIfExists('user_2fa');
}
}
}

0 comments on commit d6b25a4

Please sign in to comment.