Fix DB\Pgsql for TRUNCATE TABLE

For https://github.com/forkbb/forkbb/pull/7
This commit is contained in:
Visman 2021-12-12 12:50:57 +07:00
parent b829c816fd
commit e45cc5ffc3

View file

@ -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");
}
/**