Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 8, 2018
1 parent 2fda6b7 commit cc7ad5f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Illuminate/Database/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,11 @@ public function dropRememberToken()
*
* @param string $name
* @param string|null $indexName
*
* @return void
*/
public function dropMorphs($name, $indexName = null)
{
$indexName = $indexName ?: $this->createIndexName('index', ["{$name}_type", "{$name}_id"]);

$this->dropIndex($indexName);
$this->dropIndex($indexName ?: $this->createIndexName('index', ["{$name}_type", "{$name}_id"]));

$this->dropColumn("{$name}_type", "{$name}_id");
}
Expand Down

0 comments on commit cc7ad5f

Please sign in to comment.