| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class unc_001_install extends migration |
||
| 22 | { |
||
| 23 | static public function depends_on() |
||
| 24 | { |
||
| 25 | return ['\dark1\usernotificationcontrol\migrations\unc_000_main']; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function update_schema() |
||
| 29 | { |
||
| 30 | return [ |
||
| 31 | 'add_tables' => [ |
||
| 32 | $this->table_prefix . 'dark1_unc' => [ |
||
| 33 | 'COLUMNS' => [ |
||
| 34 | 'notification_sr_no' => ['UINT', null], |
||
| 35 | 'notification_method' => ['VCHAR:255', ''], |
||
| 36 | 'notification_type' => ['VCHAR:255', ''], |
||
| 37 | 'notification_value' => ['BOOL', 0], |
||
| 38 | ], |
||
| 39 | ], |
||
| 40 | ], |
||
| 41 | ]; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function revert_schema() |
||
| 49 | ], |
||
| 50 | ]; |
||
| 51 | } |
||
| 53 |