| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class unc_001_install extends migration |
||
| 16 | { |
||
| 17 | |||
| 18 | static public function depends_on() |
||
| 19 | { |
||
| 20 | return array('\dark1\usernotificationcontrol\migrations\unc_000_main'); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function update_schema() |
||
| 24 | { |
||
| 25 | return array( |
||
| 26 | 'add_tables' => array( |
||
| 27 | $this->table_prefix . 'dark1_unc' => array( |
||
| 28 | 'COLUMNS' => array( |
||
| 29 | 'notification_sr_no' => array('UINT', null), |
||
| 30 | 'notification_method' => array('VCHAR:255', ''), |
||
| 31 | 'notification_type' => array('VCHAR:255', ''), |
||
| 32 | 'notification_value' => array('BOOL', 0), |
||
| 33 | ), |
||
| 34 | ), |
||
| 35 | ), |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function revert_schema() |
||
| 44 | ), |
||
| 45 | ); |
||
| 46 | } |
||
| 48 |