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 committed Sep 23, 2020
1 parent a056be6 commit a4e2ac2
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 a4e2ac2

Please sign in to comment.