Skip to content

Commit

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

/**
Expand Down

0 comments on commit 53990b1

Please sign in to comment.