diff --git a/src/Illuminate/Database/Schema/Blueprint.php b/src/Illuminate/Database/Schema/Blueprint.php index d39f66be73ea..92e07106a0d7 100755 --- a/src/Illuminate/Database/Schema/Blueprint.php +++ b/src/Illuminate/Database/Schema/Blueprint.php @@ -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); } @@ -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); }