| @@ 8-28 (lines=21) @@ | ||
| 5 | class m3_ucp_friends_module extends \phpbb\db\migration\migration |
|
| 6 | { |
|
| 7 | ||
| 8 | public function update_data() |
|
| 9 | { |
|
| 10 | return array( |
|
| 11 | array('module.add', array( |
|
| 12 | 'ucp', |
|
| 13 | '', |
|
| 14 | 'CHAT_BOX', |
|
| 15 | ) |
|
| 16 | ), |
|
| 17 | array('module.add', array( |
|
| 18 | 'ucp', |
|
| 19 | 'CHAT_BOX', |
|
| 20 | array( |
|
| 21 | 'module_basename' => '\florinp\messenger\ucp\ucp_friends_module', |
|
| 22 | 'module_class' => 'ucp_friends_module', |
|
| 23 | 'modes' => array('friends', 'requests'), |
|
| 24 | ), |
|
| 25 | ) |
|
| 26 | ), |
|
| 27 | ); |
|
| 28 | } |
|
| 29 | ||
| 30 | public function revert_data() |
|
| 31 | { |
|
| @@ 30-51 (lines=22) @@ | ||
| 27 | ); |
|
| 28 | } |
|
| 29 | ||
| 30 | public function revert_data() |
|
| 31 | { |
|
| 32 | return array( |
|
| 33 | array('module.remove', array( |
|
| 34 | 'ucp', |
|
| 35 | 'CHAT_BOX', |
|
| 36 | array( |
|
| 37 | 'module_basename' => '\florinp\messenger\ucp\ucp_friends_module', |
|
| 38 | 'module_class' => 'ucp_friends_module', |
|
| 39 | 'modes' => array('friends', 'requests'), |
|
| 40 | ) |
|
| 41 | ) |
|
| 42 | ), |
|
| 43 | array('module.remove', array( |
|
| 44 | 'ucp', |
|
| 45 | '', |
|
| 46 | 'CHAT_BOX' |
|
| 47 | ) |
|
| 48 | ), |
|
| 49 | ); |
|
| 50 | ||
| 51 | } |
|
| 52 | ||
| 53 | } |
|
| 54 | ||