8000 Revert "Revert cascading truncations" · laravel/framework@ee0bb7a · GitHub
[go: up one dir, main page]

Skip to content
Dismiss alert

Commit ee0bb7a

Browse files
authored
Revert "Revert cascading truncations"
1 parent 2ade2e5 commit ee0bb7a

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' => []];
321+
return ['truncate '.$this->wrapTable($query->from).' restart identity cascade' => []];
322322
}
323323

324324
/**

0 commit comments

Comments
 (0)
0