Skip to content

Commit 2c84ab1

Browse files
Merge pull request #26 from ARCANEDEV/patch-1
Using bigIncrements for the author_id
2 parents 6d8dfdd + 5e7b31c commit 2c84ab1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

database/migrations/2016_10_00_000001_create_notes_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function up()
4141
$table->increments('id');
4242
$table->text('content');
4343
$table->morphs('noteable');
44-
$table->unsignedInteger('author_id')->nullable();
44+
$table->unsignedBigInteger('author_id')->nullable();
4545
$table->timestamps();
4646

4747
$table->foreign('author_id')

tests/fixtures/migrations/2016_10_00_000000_create_users_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct()
3636
public function up()
3737
{
3838
$this->createSchema(function (Blueprint $table) {
39-
$table->increments('id');
39+
$table->bigIncrements('id');
4040
$table->string('name');
4141
$table->string('email')->unique();
4242
$table->timestamps();

0 commit comments

Comments
 (0)