1 | <?php |
||
16 | class install_schema extends \phpbb\db\migration\migration |
||
17 | { |
||
18 | /** |
||
19 | * @inheritdoc |
||
20 | */ |
||
21 | public function effectively_installed() |
||
25 | |||
26 | /** |
||
27 | * @inheritdoc |
||
28 | */ |
||
29 | public static function depends_on() |
||
33 | |||
34 | /** |
||
35 | * Add the topic prefixes schema to the database: |
||
36 | * topic_prefixes: |
||
37 | * prefix_id Prefix identifier |
||
38 | * prefix_tag Prefix tag |
||
39 | * prefix_enabled Prefix enabled/disabled state |
||
40 | * prefix_parent_id Prefix parent identifier |
||
41 | * prefix_left_id Prefix left tree id |
||
42 | * prefix_right_id Prefix right tree id |
||
43 | * prefix_parents Prefix parents data |
||
44 | * forum_id The forum identifier associated with the prefix |
||
45 | * topics: |
||
46 | * topic_prefix_id The prefix identifier associated with the topic |
||
47 | * |
||
48 | * @return array Array of table schema |
||
49 | */ |
||
50 | public function update_schema() |
||
75 | |||
76 | /** |
||
77 | * Drop the topic prefixes schema from the database |
||
78 | * |
||
79 | * @return array Array of table schema |
||
80 | */ |
||
81 | public function revert_schema() |
||
94 | } |
||
95 |