| 1 |
<?php |
| 2 |
|
| 3 |
// Note: not localised as the messages aren't important enough |
| 4 |
class Red_Database_201 extends Red_Database_Upgrader { |
| 5 |
/** |
| 6 |
* @return array<string, string> |
| 7 |
*/ |
| 8 |
public function get_stages() { |
| 9 |
return [ |
| 10 |
'add_title_201' => 'Add titles to redirects', |
| 11 |
]; |
| 12 |
} |
| 13 |
|
| 14 |
/** |
| 15 |
* @param \wpdb $wpdb |
| 16 |
* @return bool |
| 17 |
*/ |
| 18 |
protected function add_title_201( $wpdb ) { |
| 19 |
return $this->do_query( $wpdb, "ALTER TABLE `{$wpdb->prefix}redirection_items` ADD `title` varchar(50) NULL" ); |
| 20 |
} |
| 21 |
} |
| 22 |
|