From f75584052fbc8eb3f14d20878474e43657d0c2b9 Mon Sep 17 00:00:00 2001 From: Morteza Poussaneh Date: Sat, 2 Mar 2019 14:53:21 +0330 Subject: [PATCH] Add support for laravel 5.8 default bigIncrement --- database/migrations/create_comments_table.php.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/create_comments_table.php.stub b/database/migrations/create_comments_table.php.stub index 27f2a13..bd3dd7e 100644 --- a/database/migrations/create_comments_table.php.stub +++ b/database/migrations/create_comments_table.php.stub @@ -16,7 +16,7 @@ class CreateCommentsTable extends Migration $table->morphs('commentable'); $table->text('comment'); $table->boolean('is_approved')->default(false); - $table->unsignedInteger('user_id')->nullable(); + $table->unsignedBigInteger('user_id')->nullable(); $table->timestamps(); }); }