mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Merge pull request #1614 from okinaka/2.x-disused-code
Postgres::truncate(): Delete disused code.
This commit is contained in:
commit
0f528c279a
1 changed files with 0 additions and 1 deletions
|
@ -346,7 +346,6 @@ class Postgres extends DboSource {
|
||||||
$this->cacheSources = $cache;
|
$this->cacheSources = $cache;
|
||||||
}
|
}
|
||||||
if ($this->execute('DELETE FROM ' . $this->fullTableName($table))) {
|
if ($this->execute('DELETE FROM ' . $this->fullTableName($table))) {
|
||||||
$schema = $this->config['schema'];
|
|
||||||
if (isset($this->_sequenceMap[$table]) && $reset != true) {
|
if (isset($this->_sequenceMap[$table]) && $reset != true) {
|
||||||
foreach ($this->_sequenceMap[$table] as $sequence) {
|
foreach ($this->_sequenceMap[$table] as $sequence) {
|
||||||
list($schema, $sequence) = explode('.', $sequence);
|
list($schema, $sequence) = explode('.', $sequence);
|
||||||
|
|
Loading…
Add table
Reference in a new issue