| 1 |
<?php |
| 2 |
|
| 3 |
// Note: not localised as the messages aren't important enough |
| 4 |
class Red_Database_232 extends Red_Database_Upgrader { |
| 5 |
/** |
| 6 |
* @return array<string, string> |
| 7 |
*/ |
| 8 |
public function get_stages() { |
| 9 |
return [ |
| 10 |
'remove_modules_232' => 'Remove module table', |
| 11 |
]; |
| 12 |
} |
| 13 |
|
| 14 |
/** |
| 15 |
* @param \wpdb $wpdb |
| 16 |
* @return bool |
| 17 |
*/ |
| 18 |
protected function remove_modules_232( $wpdb ) { |
| 19 |
$this->do_query( $wpdb, "DROP TABLE IF EXISTS {$wpdb->prefix}redirection_modules" ); |
| 20 |
return true; |
| 21 |
} |
| 22 |
} |
| 23 |
|