PluginProbe
Redirection / 5.6.0
Redirection v5.6.0
5.10.0 5.9.0 5.8.1 5.8.0 3.7.2 3.7.3 4.0 4.0.1 4.1 4.1.1 4.2 4.2.1 4.2.2 4.2.3 4.3 4.3.1 4.3.2 4.3.3 4.4 4.4.1 4.4.2 4.5 4.5.1 4.6.2 4.7.1 All 130 releases
redirection / database / schema / 232.php

232.php in Redirection 5.6.0, at database/schema/232.php

23 lines 478 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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