| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 8 | class m190803_101632_alter_file extends Migration |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 13 | public function safeUp() |
||
| 14 | { |
||
| 15 | $this->createIndex('file-class', '{{%file}}', 'class'); |
||
| 16 | $this->createIndex('file-object_id', '{{%file}}', 'object_id'); |
||
| 17 | $this->createIndex('file-field', '{{%file}}', 'field'); |
||
| 18 | $this->createIndex('file-type', '{{%file}}', 'type'); |
||
| 19 | $this->createIndex('file-hash', '{{%file}}', 'hash'); |
||
| 20 | $this->createIndex('file-filename', '{{%file}}', 'filename'); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | public function safeDown() |
||
| 31 | } |
||
| 32 | |||
| 34 |