From 5e7b31cae3c3badeb564b34ff8d46457d090a87c Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Mon, 29 Apr 2019 15:15:32 +0100 Subject: [PATCH] Using bigIncrements for the author_id --- database/migrations/2016_10_00_000001_create_notes_table.php | 2 +- .../migrations/2016_10_00_000000_create_users_table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2016_10_00_000001_create_notes_table.php b/database/migrations/2016_10_00_000001_create_notes_table.php index 1b04992..9945f37 100644 --- a/database/migrations/2016_10_00_000001_create_notes_table.php +++ b/database/migrations/2016_10_00_000001_create_notes_table.php @@ -41,7 +41,7 @@ public function up() $table->increments('id'); $table->text('content'); $table->morphs('noteable'); - $table->unsignedInteger('author_id')->nullable(); + $table->unsignedBigInteger('author_id')->nullable(); $table->timestamps(); $table->foreign('author_id') diff --git a/tests/fixtures/migrations/2016_10_00_000000_create_users_table.php b/tests/fixtures/migrations/2016_10_00_000000_create_users_table.php index 8f75a08..e794246 100644 --- a/tests/fixtures/migrations/2016_10_00_000000_create_users_table.php +++ b/tests/fixtures/migrations/2016_10_00_000000_create_users_table.php @@ -36,7 +36,7 @@ public function __construct() public function up() { $this->createSchema(function (Blueprint $table) { - $table->increments('id'); + $table->bigIncrements('id'); $table->string('name'); $table->string('email')->unique(); $table->timestamps();