Fix DB\Pgsql for TRUNCATE TABLE
For https://github.com/forkbb/forkbb/pull/7
This commit is contained in:
parent
b829c816fd
commit
e45cc5ffc3
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ class Pgsql
|
|||
|
||||
$table = ($noPrefix ? '' : $this->dbPrefix) . $table;
|
||||
|
||||
return false !== $this->db->exec("TRUNCATE TABLE ONLY \"{$table}\"");
|
||||
return false !== $this->db->exec("TRUNCATE TABLE ONLY \"{$table}\" RESTART IDENTITY");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue