Skip to content

Commit

Permalink
Merge pull request #26 from ARCANEDEV/patch-1
Browse files Browse the repository at this point in the history
Using bigIncrements for the author_id
  • Loading branch information
arcanedev-maroc authored Apr 29, 2019
2 parents 6d8dfdd + 5e7b31c commit 2c84ab1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2c84ab1

Please sign in to comment.