| @@ -75,14 +75,8 @@ | ||
| 75 | 75 | ) |
| 76 | 76 | DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"; |
| 77 | 77 | |
| 78 | 78 | dbDelta($sql); |
| 79 | - } else { | |
| 80 | - $current_collation = $wpdb->get_var("SELECT TABLE_COLLATION FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = '$audit_logs_table'"); | |
| 81 | - | |
| 82 | - if ($current_collation != 'utf8_general_ci') { | |
| 83 | - $wpdb->query("ALTER TABLE $audit_logs_table CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci "); | |
| 84 | - } | |
| 85 | 79 | } |
| 86 | 80 | |
| 87 | 81 | $scan_logs_table = self::add_prefix(self::WTOTEM_TABLE_SCAN_LOGS); |
| 88 | 82 | if ($wpdb->get_var("show tables like '$scan_logs_table'") != $scan_logs_table) { |
| @@ -356,17 +350,8 @@ | ||
| 356 | 350 | foreach ($tables as $table) { |
| 357 | 351 | global $wpdb; |
| 358 | 352 | $wpdb->query('DROP TABLE IF EXISTS `' . self::add_prefix($table) . '`'); |
| 359 | 353 | } |
| 360 | - } | |
| 361 | - | |
| 362 | - /** | |
| 363 | - * Deleting wtotem tables. | |
| 364 | - */ | |
| 365 | - public static function clearSettings() | |
| 366 | - { | |
| 367 | - global $wpdb; | |
| 368 | - $wpdb->query('TRUNCATE TABLE `' . self::add_prefix(self::WTOTEM_TABLE_SETTINGS) . '`'); | |
| 369 | 354 | } |
| 370 | 355 | |
| 371 | 356 | /** |
| 372 | 357 | * Returns the table with the site prefix added. |