| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class m180220_081105_create_mediafiles_table extends Migration |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 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 | ]); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function safeDown() |
||
| 37 | } |
||
| 38 | } |
||
| 39 |