Skip to content

Commit

Permalink
Merge pull request #34496 from blakethepatton/6.x
Browse files Browse the repository at this point in the history
Revert cascading truncations
  • Loading branch information
taylorotwell committed Sep 23, 2020
2 parents 68f6646 + a4e2ac2 commit 2ade2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Query/Grammars/PostgresGrammar.php
Expand Up @@ -318,7 +318,7 @@ protected function compileDeleteWithJoinsOrLimit(Builder $query)
*/
public function compileTruncate(Builder $query)
{
return ['truncate '.$this->wrapTable($query->from).' restart identity cascade' => []];
return ['truncate '.$this->wrapTable($query->from).' restart identity' => []];
}

/**
Expand Down

0 comments on commit 2ade2e5

Please sign in to comment.