Skip to content

Commit

Permalink
user_id file changed to unsigned bigInteger.
Browse files Browse the repository at this point in the history
  • Loading branch information
willvincent committed Sep 20, 2019
1 parent b541e95 commit f8d8a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrations/create_ratings_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function up()
$table->timestamps();
$table->integer('rating');
$table->morphs('rateable');
$table->unsignedInteger('user_id')->index();
$table->bigInteger('user_id')->unsigned();
$table->index('rateable_id');
$table->index('rateable_type');
$table->foreign('user_id')->references('id')->on('users');
Expand Down

0 comments on commit f8d8a61

Please sign in to comment.