Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da9fbe1

Browse files
authored
Revert "Revert cascading truncations"
1 parent 76a2dba commit da9fbe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Query/Grammars/PostgresGrammar.php

Lines changed: 1 addition & 1 deletion
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)