| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function safeUp() |
||
| 19 | { |
||
| 20 | $this->createTable('{{%activity_log}}', [ |
||
| 21 | 'id' => $this->bigPrimaryKey(), |
||
| 22 | 'entity_name' => $this->string(32)->notNull(), |
||
| 23 | 'entity_id' => $this->string(32), |
||
| 24 | 'created_at' => $this->integer()->notNull(), |
||
| 25 | 'user_id' => $this->string(32), |
||
| 26 | 'user_name' => $this->string(255), |
||
| 27 | 'action' => $this->string(32), |
||
| 28 | 'env' => $this->string(32), |
||
| 29 | 'data' => $this->text(), |
||
| 30 | ], $this->tableOptions); |
||
| 31 | |||
| 32 | $this->createIndex('activity_log-entity_name-entity_id-idx', '{{%activity_log}}', ['entity_name', 'entity_id']); |
||
| 33 | $this->createIndex('activity_log-user_id', '{{%activity_log}}', 'user_id'); |
||
| 34 | } |
||
| 41 |