| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function change() |
||
| 33 | { |
||
| 34 | $projects = $this->table('events', [ |
||
| 35 | 'id' => 'event_id', |
||
| 36 | ]); |
||
| 37 | $projects |
||
| 38 | ->addColumn('event_deployment', 'integer') |
||
| 39 | ->addColumn('event_type', 'string', [ |
||
| 40 | 'length' => 20, |
||
| 41 | 'null' => false |
||
| 42 | ]) |
||
| 43 | ->addColumn('event_header', 'string', [ |
||
| 44 | 'length' => 1024, |
||
| 45 | 'null' => false |
||
| 46 | ]) |
||
| 47 | ->addColumn('event_detail', 'text', [ |
||
| 48 | 'null' => true |
||
| 49 | ]) |
||
| 50 | ->addTimestamps('event_created', 'event_updated') |
||
| 51 | ->addIndex(['event_deployment']) |
||
| 52 | ->create(); |
||
| 53 | } |
||
| 55 |