From f8d8a612540c74cd4c5ddf9ba4065d629bebddfc Mon Sep 17 00:00:00 2001 From: Will Vincent Date: Fri, 20 Sep 2019 12:27:43 -0500 Subject: [PATCH] user_id file changed to unsigned bigInteger. --- src/migrations/create_ratings_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migrations/create_ratings_table.php b/src/migrations/create_ratings_table.php index 8307317..8267f61 100644 --- a/src/migrations/create_ratings_table.php +++ b/src/migrations/create_ratings_table.php @@ -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');