Skip to content

Commit

Permalink
Remove DANGEROUS cascade statement from truncate query
Browse files Browse the repository at this point in the history
  • Loading branch information
blakethepatton authored Sep 23, 2020
1 parent 513777f commit 76a2dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 cascade' => []];
return ['truncate '.$this->wrapTable($query->from).' restart identity' => []];
}

/**
Expand Down

0 comments on commit 76a2dba

Please sign in to comment.