Skip to content

Commit

Permalink
Fix #37
Browse files Browse the repository at this point in the history
  • Loading branch information
xoco70 committed May 17, 2019
1 parent 419a505 commit ec31f68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function up()
Schema::create('tournament', function (Blueprint $table) {
$table->increments('id');
//TODO Added ->nullable() to solve FK issue with Sqlite :(
$table->Integer('user_id')->unsigned()->nullable()->index();
$table->bigInteger('user_id')->unsigned()->nullable()->index();
$table->foreign('user_id')
->references('id')
->on('users')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function up()
->onUpdate('cascade')
->onDelete('cascade');

$table->integer('user_id')->unsigned()->index();
$table->bigInteger('user_id')->unsigned()->index();
$table->foreign('user_id')
->references('id')
->on('users')
Expand Down

0 comments on commit ec31f68

Please sign in to comment.