Skip to content

Commit

Permalink
morphs and nullableMorphs to unsignedBigInteger (#23320)
Browse files Browse the repository at this point in the history
update morphs and  nullableMorphs function to use unsignedBigInteger instead of unsignedInteger
  • Loading branch information
mohamedsharaf authored and taylorotwell committed Feb 27, 2018
1 parent 9cf82b9 commit 25f9dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ public function morphs($name, $indexName = null)
{
$this->string("{$name}_type");

$this->unsignedInteger("{$name}_id");
$this->unsignedBigInteger("{$name}_id");

$this->index(["{$name}_type", "{$name}_id"], $indexName);
}
Expand All @@ -1136,7 +1136,7 @@ public function nullableMorphs($name, $indexName = null)
{
$this->string("{$name}_type")->nullable();

$this->unsignedInteger("{$name}_id")->nullable();
$this->unsignedBigInteger("{$name}_id")->nullable();

$this->index(["{$name}_type", "{$name}_id"], $indexName);
}
Expand Down

0 comments on commit 25f9dce

Please sign in to comment.