| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public function up() |
||
| 8 | { |
||
| 9 | $this->table('article_posts', ['id' => false]) |
||
| 10 | ->addColumn('article_uuid', 'binary', ['limit' => 16]) |
||
| 11 | ->addColumn('title', 'text') |
||
| 12 | ->addColumn('body', 'text') |
||
| 13 | ->addColumn('lead', 'text') |
||
| 14 | ->addColumn('featured_img', 'text', ['null' => true]) |
||
| 15 | ->addColumn('main_img', 'text', ['null' => true]) |
||
| 16 | ->addColumn('has_layout', 'boolean', ['default' => true]) |
||
| 17 | ->addForeignKey('article_uuid', 'articles', 'article_uuid', ['delete' => 'NO_ACTION', 'update' => 'NO_ACTION']) |
||
| 18 | ->create(); |
||
| 19 | } |
||
| 20 | |||
| 26 |