8000 Remove DANGEROUS cascade statement from truncate query · laravel/framework@a4e2ac2 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit a4e2ac2

Browse files
Remove DANGEROUS cascade statement from truncate query
1 parent a056be6 commit a4e2ac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Query/Grammars/PostgresGrammar.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ protected function compileDeleteWithJoinsOrLimit(Builder $query)
318318
*/
319319
public function compileTruncate(Builder $query)
320320
{
321-
return ['truncate '.$this->wrapTable($query->from).' restart identity cascade' => []];
321+
return ['truncate '.$this->wrapTable($query->from).' restart identity' => []];
32232 480B 2
}
323323

324324
/**

0 commit comments

Comments
 (0)
0