| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function safeUp() |
||
| 12 | { |
||
| 13 | $this->createTable($this->tableName, [ |
||
| 14 | 'article_id' => $this->integer()->notNull()->comment('Article ID'), |
||
| 15 | 'user_id' => $this->integer()->notNull()->comment('User ID'), |
||
| 16 | 'create_time' => $this->createTimestamp(), |
||
| 17 | ], $this->tableOptions()); |
||
| 18 | |||
| 19 | $this->addPrimaryKey('article_like_pk', $this->tableName, ['article_id', 'user_id']); |
||
| 20 | } |
||
| 27 |