| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function safeUp() |
||
| 14 | { |
||
| 15 | $this->createTable('mediafiles', [ |
||
| 16 | 'id' => $this->primaryKey(), |
||
|
|
|||
| 17 | 'filename' => $this->string(128)->notNull(), |
||
| 18 | 'type' => $this->string(64)->notNull(), |
||
| 19 | 'url' => $this->text()->notNull(), |
||
| 20 | 'alt' => $this->string(128), |
||
| 21 | 'size' => $this->integer()->notNull(), |
||
| 22 | 'title' => $this->string(128), |
||
| 23 | 'description' => $this->text(), |
||
| 24 | 'thumbs' => $this->text(), |
||
| 25 | 'storage' => $this->string(12)->notNull(), |
||
| 26 | 'created_at' => $this->integer()->notNull(), |
||
| 27 | 'updated_at' => $this->integer(), |
||
| 28 | ]); |
||
| 39 |