Skip to content

Commit

Permalink
Revert "Revert cascading truncations"
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 23, 2020
1 parent 2ade2e5 commit ee0bb7a
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' => []];
return ['truncate '.$this->wrapTable($query->from).' restart identity cascade' => []];
}

/**
Expand Down

0 comments on commit ee0bb7a

Please sign in to comment.