Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class m10_update_idea_schema extends \phpbb\db\migration\migration |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritDoc} |
||
17 | */ |
||
18 | public static function depends_on() |
||
26 | ]; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritDoc} |
||
31 | * |
||
32 | * Convert ideas title column to sortable text (same as topic titles) |
||
33 | * to allow for case-insensitive SQL LIKE searches. |
||
34 | */ |
||
35 | public function update_schema() |
||
36 | { |
||
37 | return [ |
||
38 | 'change_columns' => [ |
||
39 | $this->table_prefix . 'ideas_ideas' => [ |
||
40 | 'idea_title' => ['STEXT_UNI', '', 'true_sort'], |
||
41 | ], |
||
42 | ], |
||
43 | ]; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * {@inheritDoc} |
||
48 | */ |
||
49 | public function revert_schema() |
||
51 | } |
||
52 | } |
||
53 |