You are here

private function FirewallUpdater::renameDataTables in Anti Spam by CleanTalk 9.1.x

Same name and namespace in other branches
  1. 8.4 src/lib/Cleantalk/Common/Firewall/FirewallUpdater.php \Cleantalk\Common\Firewall\FirewallUpdater::renameDataTables()

Renamin a temporary updating table into production table name

Parameters

DB $db database handler:

1 call to FirewallUpdater::renameDataTables()
FirewallUpdater::update in src/lib/Cleantalk/Common/Firewall/FirewallUpdater.php

File

src/lib/Cleantalk/Common/Firewall/FirewallUpdater.php, line 403

Class

FirewallUpdater

Namespace

Cleantalk\Common\Firewall

Code

private function renameDataTables() {
  $this->db
    ->execute('ALTER TABLE ' . $this->fw_data_table_name . '_temp RENAME ' . $this->fw_data_table_name . ';');
}